[epiphany/gnome-3-22] web-app-utils: don't crash if address is not a URI
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-22] web-app-utils: don't crash if address is not a URI
- Date: Thu, 1 Sep 2016 21:50:16 +0000 (UTC)
commit e515fd8839f813fc7c7fac5573344feb4476cf97
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Sep 1 16:29:20 2016 -0500
web-app-utils: don't crash if address is not a URI
Let's tolerate desktop files passing an absolute path or something
instead of a URI.
https://bugzilla.gnome.org/show_bug.cgi?id=767101
lib/ephy-web-app-utils.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index aaf1f7c..5e7e178 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -290,6 +290,8 @@ create_cookie_jar_for_domain (const char *address, const char *directory)
/* The app domain for the current view */
uri = soup_uri_new (address);
+ if (!uri)
+ return;
domain = uri->host;
/* The current cookies */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]