From 43b195976254fe710731a1cd58af6bebdff9236a Mon Sep 17 00:00:00 2001 From: Brandon Mercer Date: Thu, 16 Oct 2008 20:29:58 +0200 Subject: [PATCH] Don't search if there's a colon (:) in a domain --- midori/sokoke.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)