Check stricly for relative path in midori_prepare_uri

Fixes: https://bugs.launchpad.net/midori/+bug/963899
This commit is contained in:
Paweł Forysiuk 2012-03-25 17:47:51 +02:00 committed by Christian Dywan
parent a371ef99ef
commit 76be3b9aea

View file

@ -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,