Don't search if there's a colon (:) in a domain
This commit is contained in:
parent
7849f28e08
commit
43b1959762
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ sokoke_magic_uri (const gchar* uri,
|
|||
if (!strstr (uri, "://"))
|
||||
{
|
||||
/* Do we have a domain, ip address or localhost? */
|
||||
if (strchr (uri, '.') != NULL || !strcmp (uri, "localhost"))
|
||||
if (strchr (uri, '.') != NULL || strchr (uri, ':')
|
||||
|| !strcmp (uri, "localhost"))
|
||||
return g_strconcat ("http://", uri, NULL);
|
||||
/* We don't want to search? So return early. */
|
||||
if (!search_engines)
|
||||
|
|
Loading…
Reference in a new issue