Check stricly for relative path in midori_prepare_uri
Fixes: https://bugs.launchpad.net/midori/+bug/963899
This commit is contained in:
parent
a371ef99ef
commit
76be3b9aea
1 changed files with 2 additions and 1 deletions
|
@ -1515,7 +1515,8 @@ midori_prepare_uri (const gchar *uri)
|
|||
|
||||
if (g_str_has_prefix(uri, "javascript:"))
|
||||
return NULL;
|
||||
else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))
|
||||
else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)
|
||||
&& !g_path_is_absolute (uri))
|
||||
{
|
||||
gchar* current_dir = g_get_current_dir ();
|
||||
uri_ready = g_strconcat ("file://", current_dir,
|
||||
|
|
Loading…
Reference in a new issue