r13930 dsilvers - /trunk/netsurf/utils/nsurl.c

netsurf at semichrome.net netsurf at semichrome.net
Wed May 23 11:34:30 BST 2012


Author: dsilvers
Date: Wed May 23 05:34:30 2012
New Revision: 13930

URL: http://source.netsurf-browser.org?rev=13930&view=rev
Log:
Fix FTP detection.  Thanks to Etienne Cochard <etienne.cochard at gmail.com> for spotting the bug.

Modified:
    trunk/netsurf/utils/nsurl.c

Modified: trunk/netsurf/utils/nsurl.c
URL: http://source.netsurf-browser.org/trunk/netsurf/utils/nsurl.c?rev=13930&r1=13929&r2=13930&view=diff
==============================================================================
--- trunk/netsurf/utils/nsurl.c (original)
+++ trunk/netsurf/utils/nsurl.c Wed May 23 05:34:30 2012
@@ -310,7 +310,7 @@
 					  (*(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') ||




More information about the netsurf-commits mailing list