diff --git a/midori/sokoke.c b/midori/sokoke.c index 6ab9dcae..cd5f5518 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -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)