[epiphany] web-app-utils: don't crash if address is not a URI



commit b9be33127a9b3ed2e49f93c27ee8261ebd80b46f
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]