Pass through javascript: URIS from the command line

This commit is contained in:
Alexander Butenko 2011-05-22 16:54:56 +02:00 committed by Christian Dywan
parent 6cc4c9db4e
commit cd7522ef7f

View file

@ -1561,6 +1561,8 @@ midori_prepare_uri (const gchar *uri)
if (g_path_is_absolute (uri))
return g_filename_to_uri (uri, NULL, NULL);
else if (g_str_has_prefix(uri, "javascript:"))
return g_strdup (uri);
else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
{
gchar* current_dir = g_get_current_dir ();