Fix FTP over HTTP authentication request parsing

Conflicts:
	src/version.h
This commit is contained in:
z3APA3A committed 2015-09-11 23:10:40 +03:00
1 parent de8de757f6
commit 98961ced0d
1 file changed
+1 -1
+1 -1
View File
@@ -464,7 +464,7 @@ for(;;){
}
if(se)*se = '\r';
}
if(ftp && i > 19 && (!strncasecmp((char *)(buf+inbuf), "authorization", 19))){
if(ftp && i > 13 && (!strncasecmp((char *)(buf+inbuf), "authorization", 13))){
sb = (unsigned char *)strchr((char *)(buf+inbuf), ':');
if(!sb)continue;
++sb;