[Xfce4-commits] <midori:master> Regard data: and javascript: URIs as allowed when adding bookmarks

Christian Dywan noreply at xfce.org
Thu Oct 22 02:22:03 CEST 2009


Updating branch refs/heads/master
         to f3cf2561ff90e52746eecd73a9ab6c6286535a39 (commit)
       from 6b0f38e51a9392a40737ce5e2c4c8286eb3af1d9 (commit)

commit f3cf2561ff90e52746eecd73a9ab6c6286535a39
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Oct 21 19:31:16 2009 +0200

    Regard data: and javascript: URIs as allowed when adding bookmarks

 midori/midori-browser.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 03ffd13..7fba557 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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 */



More information about the Xfce4-commits mailing list