mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
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:
parent
319c463894
commit
9dc9e36bc3
@ -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') ||
|
||||
|
Loading…
Reference in New Issue
Block a user