sokoke_external_uri should return FALSE for non-URIs
In particular search key words.
This commit is contained in:
parent
936758afdc
commit
9f30695ca3
1 changed files with 3 additions and 0 deletions
|
@ -749,6 +749,9 @@ sokoke_external_uri (const gchar* uri)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
scheme = g_uri_parse_scheme (uri);
|
scheme = g_uri_parse_scheme (uri);
|
||||||
|
if (!scheme)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
info = g_app_info_get_default_for_uri_scheme (scheme);
|
info = g_app_info_get_default_for_uri_scheme (scheme);
|
||||||
g_free (scheme);
|
g_free (scheme);
|
||||||
if (info)
|
if (info)
|
||||||
|
|
Loading…
Reference in a new issue