]> spindle.queued.net Git - midori/commitdiff
Regard data: and javascript: URIs as allowed when adding bookmarks
authorChristian Dywan <christian@twotoasts.de>
Wed, 21 Oct 2009 17:31:16 +0000 (19:31 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 22 Oct 2009 00:20:26 +0000 (02:20 +0200)
midori/midori-browser.c

index 03ffd13585803ad684ec0f84034a41ece897c272..7fba5572d32ece103a02be9419bb0220057d94fb 100644 (file)
@@ -625,7 +625,9 @@ midori_browser_edit_bookmark_uri_changed_cb (GtkEntry*      entry,
     gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_ACCEPT,
         uri && (g_str_has_prefix (uri, "http://")
         || g_str_has_prefix (uri, "https://")
-        || g_str_has_prefix (uri, "file://")));
+        || g_str_has_prefix (uri, "file://"))
+        || g_str_has_prefix (uri, "data:")
+        || g_str_has_prefix (uri, "javascript:"));
 }
 
 /* Private function, used by MidoriBookmarks and MidoriHistory */