Closed GoogleCodeExporter closed 8 years ago
Actually - I think it's when you also include the explicit :80 or :443 in the
GET/POST request that the regex check fails. Otherwise, it just fails the
signature check as the base string becomes wrong.
Original comment by steves%m...@gtempaccount.com
on 15 Oct 2010 at 2:35
Sorry for the delay. Please let me understand this: does the first patch you
posted fix the problem? It makes sense anyway, so I'm adding it to r163.
But I am not sure what regex is breaking... Can you tell me the lines? Or the
problem is that the sprintf() should have the port as well in this case?
Original comment by brunobg%...@gtempaccount.com
on 28 Oct 2010 at 4:21
Short answer: Yes the patch fixes the issue, and the regex is correct as-is.
Longer answer: I made a small ommission in the original report - the regex
fails if the request made through the HTTP server is of the form:
GET http://www.example.com:80/endpoint.php
whereupon the full URL would become
http://www.example.comhttp://www.example.com:80/endpoint.php
which gets broken down to a port of 80 (by virtue of looking at the *last*
colon), and host of
www.example.comhttp://www.example.com
which fails the regex check on the "host" validation because of the :// which
is completely correct.
Thanks for the applying the fixes!
Original comment by steves%m...@gtempaccount.com
on 29 Oct 2010 at 8:58
Original comment by brunobg%...@gtempaccount.com
on 17 Nov 2010 at 5:18
Original issue reported on code.google.com by
steves%m...@gtempaccount.com
on 15 Oct 2010 at 2:08