From 096c40a785b61778715766f9b015400d92fb714f Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Thu, 4 Apr 2013 17:39:07 +0200 Subject: [PATCH] Don't call search engine for url like http://localhost. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index d5cece1..17a33d6 100644 --- a/src/main.c +++ b/src/main.c @@ -143,7 +143,7 @@ gboolean vb_load_uri(const Arg *arg) rp = realpath(path, NULL); uri = g_strdup_printf("file://%s", rp); free(rp); - } else if (!strchr(path, '.')) { + } else if (!strchr(path, '.' && !strchr(path, '/'))) { char *part = NULL, *tmpl = NULL, *query = NULL; /* look up for a searchengine with handle */ -- 2.20.1