[issue11662] Redirect vulnerability in urllib/urllib2
Antoine Pitrou
report at bugs.python.org
Tue Mar 29 18:48:36 CEST 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
I don't have a 2.5 checkout to test but the patch looks ok to me.
Under 2.7 I get a test failure, I suppose you'll have some merging work to do:
test test_urllib2 failed -- Traceback (most recent call last):
File "/home/antoine/cpython/27/Lib/test/test_urllib2.py", line 990, in test_invalid_redirect
MockHeaders({"location": valid_url}))
File "/home/antoine/cpython/27/Lib/urllib2.py", line 616, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/antoine/cpython/27/Lib/urllib2.py", line 219, in __getattr__
raise AttributeError, attr
AttributeError: timeout
----------
versions: -Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11662>
_______________________________________
More information about the Python-bugs-list
mailing list