Regard data: and javascript: URIs as allowed when adding bookmarks
This commit is contained in:
parent
6b0f38e51a
commit
f3cf2561ff
1 changed files with 3 additions and 1 deletions
|
@ -625,7 +625,9 @@ midori_browser_edit_bookmark_uri_changed_cb (GtkEntry* entry,
|
||||||
gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_ACCEPT,
|
gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_ACCEPT,
|
||||||
uri && (g_str_has_prefix (uri, "http://")
|
uri && (g_str_has_prefix (uri, "http://")
|
||||||
|| g_str_has_prefix (uri, "https://")
|
|| 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 */
|
/* Private function, used by MidoriBookmarks and MidoriHistory */
|
||||||
|
|
Loading…
Reference in a new issue