]> spindle.queued.net Git - midori/commitdiff
Pass through javascript: URIS from the command line
authorAlexander Butenko <a.butenka@gmail.com>
Sun, 22 May 2011 14:54:56 +0000 (16:54 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 22 May 2011 14:54:56 +0000 (16:54 +0200)
midori/main.c

index 595439e4e0bcd284a09df1a8b4cce39f62ddda1d..15e25d85d8cb95b928e39a3e6ba59338bdef2b0c 100644 (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 ();