mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
Fix FTP over HTTP authentication request parsing
Conflicts: src/version.h
This commit is contained in:
parent
de8de757f6
commit
98961ced0d
@ -464,7 +464,7 @@ for(;;){
|
|||||||
}
|
}
|
||||||
if(se)*se = '\r';
|
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), ':');
|
sb = (unsigned char *)strchr((char *)(buf+inbuf), ':');
|
||||||
if(!sb)continue;
|
if(!sb)continue;
|
||||||
++sb;
|
++sb;
|
||||||
|
Loading…
Reference in New Issue
Block a user