diff -r 38a0105c05ea src/url.c --- a/src/url.c Sat Oct 24 16:06:44 2009 -0700 +++ b/src/url.c Fri Dec 11 20:34:10 2009 +0100 @@ -445,7 +445,7 @@ /* Return 1 if the URL begins with any "scheme", 0 otherwise. As currently implemented, it returns true if URL begins with - [-+a-zA-Z0-9]+: . */ + [-+a-zA-Z0-9]+:// . */ bool url_has_scheme (const char *url) @@ -460,7 +460,11 @@ while (*p && SCHEME_CHAR (*p)) ++p; /* Terminated by ':'. */ - return *p == ':'; + if (*p != ':') + return false; + ++p; + /* Ending double slash. */ + return strstr (p, "//") ? true : false; } int