return;
}
}
+ else if (g_str_has_prefix (uri, "javascript:"))
+ {
+ midori_view_execute_script (view, &uri[11], NULL);
+ }
else
{
katze_assign (view->uri, g_strdup (uri));
g_return_val_if_fail (!search_engines ||
katze_array_is_a (search_engines, KATZE_TYPE_ITEM), NULL);
+ /* Just return if it's a javascript: uri */
+ if (g_str_has_prefix (uri, "javascript:"))
+ return g_strdup (uri);
/* Add file:// if we have a local path */
if (g_path_is_absolute (uri))
return g_strconcat ("file://", uri, NULL);
test_input ("verbose de.po", NULL);
test_input ("g de.po verbose", NULL);
test_input ("sm de.po verbose", SM "de.po verbose");
+ test_input ("javascript:alert(1)", "javascript:alert(1)");
return 0;
}