From: Christian Dywan Date: Wed, 21 Oct 2009 17:31:16 +0000 (+0200) Subject: Regard data: and javascript: URIs as allowed when adding bookmarks X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3cf2561ff90e52746eecd73a9ab6c6286535a39;p=midori Regard data: and javascript: URIs as allowed when adding bookmarks --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 03ffd135..7fba5572 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 */