Don't call search engine for url like http://localhost.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 4 Apr 2013 15:39:07 +0000 (17:39 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 4 Apr 2013 15:43:19 +0000 (17:43 +0200)
src/main.c

index d5cece1..17a33d6 100644 (file)
@@ -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 */