Fix FTP detection. Thanks to Etienne Cochard <etienne.cochard@gmail.com> for spotting the bug.

svn path=/trunk/netsurf/; revision=13930
This commit is contained in:
Daniel Silverstone 2012-05-23 10:34:30 +00:00
parent 319c463894
commit 9dc9e36bc3

View File

@ -310,7 +310,7 @@ static void nsurl__get_string_markers(const char * const url_s,
(*(pos - off + 4) == 'S')))) {
marker.scheme_type = NSURL_SCHEME_HTTPS;
is_http = true;
} else if (off == SLEN("https") &&
} else if (off == SLEN("ftp") &&
(((*(pos - off + 0) == 'f') ||
(*(pos - off + 0) == 'F')) &&
((*(pos - off + 1) == 't') ||