Open GoogleCodeExporter opened 8 years ago
I applied the patch on version 2.14 and also modified the code at line 849 of
file libhttp/httpconnection.c :
#BEFORE:
if (ch != '-' && ch != '.' &&
(ch < '0' ||(ch > '9' && ch < 'A') ||
(ch > 'Z' && ch < 'a')||(ch > 'z' && ch <= 0x7E))) {
httpSendReply(http, 400, "Bad Request", NO_MSG);
return HTTP_DONE;
}
#AFTER:
if (ch != '[' && ch != ']' && ch != '-' && ch != '.' &&
(ch < '0' || (ch > '9' && ch < 'A') ||
(ch > 'Z' && ch < 'a') || (ch > 'z' && ch <= 0x7E)))
{
//debug("Error, Host [%s]\n", host);
httpSendReply(http, 400, "Bad Request", NO_MSG);
return HTTP_DONE;
}
Greetings.
Original comment by molinari...@gmail.com
on 1 Oct 2012 at 8:10
pleas provide patch for Ipv6 issue the provided link is not working.
Original comment by ssksuman...@gmail.com
on 2 Sep 2014 at 7:31
Original issue reported on code.google.com by
naus...@google.com
on 13 Apr 2012 at 7:37