Related to: https://bugs.launchpad.net/midori/+bug/909423
{
const gchar* uri = gtk_entry_get_text (GTK_ENTRY (entry));
gboolean valid = midori_uri_is_location (uri);
+ if (!valid && g_object_get_data (G_OBJECT (entry), "allow_%s"))
+ valid = uri && g_str_has_prefix (uri, "%s");
if (*uri && !valid)
{
GdkColor bg_color = { 0 };
#else
NULL);
#endif
+ g_object_set_data (G_OBJECT (entry_uri), "allow_%s", (void*)1);
gtk_entry_set_activates_default (GTK_ENTRY (entry_uri), TRUE);
if (!new_engine)
gtk_entry_set_text (GTK_ENTRY (entry_uri)