From: Brandon Mercer Date: Thu, 16 Oct 2008 18:29:58 +0000 (+0200) Subject: Don't search if there's a colon (:) in a domain X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43b195976254fe710731a1cd58af6bebdff9236a;p=midori Don't search if there's a colon (:) in a domain --- 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)