From 5f60820ebac778bbfd3d73adb094123f7731ba97 Mon Sep 17 00:00:00 2001
From: RichardHitt <rbh00@netcom.com>
Date: Mon, 8 Oct 2012 12:20:11 -0700
Subject: Fix "Fix URL detection".  First-character test in linux should be for
 equal, rather than not-equal.  If first character is a slash return
 WORD_PATH.

---
 src/common/url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/common/url.c b/src/common/url.c
index 3de99d1f..ee29a8a8 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -207,7 +207,7 @@ url_check_word (char *word, int len)
 #ifdef WIN32
 	if ((len > 1 && word[0] == '\\') || (len > 2 && (((word[0] >= 'A' && word[0] <= 'Z') || (word[0] >= 'a' && word[0] <= 'z')) && word[1] == ':')))
 #else
-	if (len > 1 && word[0] != '/')
+	if (len > 1 && word[0] == '/')
 #endif
 	{
 		return WORD_PATH;
-- 
cgit 1.4.1