Merge pull request #142 from RichardHitt/master

Fix "Fix URL Detection"
This commit is contained in:
bviktor 2012-10-08 13:29:38 -07:00
commit 77fb21c5d5

View File

@ -207,7 +207,7 @@ url_check_word (char *word, int len)
#ifdef WIN32 #ifdef WIN32
if ((len > 1 && word[0] == '\\') || (len > 2 && (((word[0] >= 'A' && word[0] <= 'Z') || (word[0] >= 'a' && word[0] <= 'z')) && word[1] == ':'))) if ((len > 1 && word[0] == '\\') || (len > 2 && (((word[0] >= 'A' && word[0] <= 'Z') || (word[0] >= 'a' && word[0] <= 'z')) && word[1] == ':')))
#else #else
if (len > 1 && word[0] != '/') if (len > 1 && word[0] == '/')
#endif #endif
{ {
return WORD_PATH; return WORD_PATH;