diff options
author | Christian Dywan <christian@twotoasts.de> | 2012-11-26 19:05:35 +0100 |
---|---|---|
committer | Christian Dywan <christian@twotoasts.de> | 2012-11-26 19:05:35 +0100 |
commit | 74b3bc15ccd7bb5c4dd109982e2c6e1d9e734f4e (patch) | |
tree | 5a4e58b0688f07274d01dd38fe404d7adc5e4478 /midori/sokoke.c | |
parent | ff31cd827c8ac060ebc84830317b9bd455703422 (diff) | |
download | midori-74b3bc15ccd7bb5c4dd109982e2c6e1d9e734f4e.tar.gz |
Move session loading steps into its own file
Diffstat (limited to 'midori/sokoke.c')
-rw-r--r-- | midori/sokoke.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/midori/sokoke.c b/midori/sokoke.c index c1d19f47..fa936ba5 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -486,8 +486,8 @@ sokoke_prepare_uri (const gchar *uri) { gchar* uri_ready; - if (g_str_has_prefix(uri, "javascript:")) - return NULL; + 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) && !g_path_is_absolute (uri)) { |