summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:05:34 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-20 22:05:34 (GMT)
commit18d5a6966980387051e5c1012d9a87a46eda3d34 (patch)
tree04a2db610a70093c77e619ec9895ea553e970c15 /Lib/urllib.py
parente3467d5c960f4ec5f0cca5dfa5b3a0a02a19cfb3 (diff)
downloadcpython-18d5a6966980387051e5c1012d9a87a46eda3d34.zip
cpython-18d5a6966980387051e5c1012d9a87a46eda3d34.tar.gz
cpython-18d5a6966980387051e5c1012d9a87a46eda3d34.tar.bz2
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index d4740e9..58e750a 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -179,7 +179,7 @@ class URLopener:
fullurl = unwrap(toBytes(fullurl))
# percent encode url, fixing lame server errors for e.g, like space
# within url paths.
- fullurl = quote(fullurl, safe="%/:=&?~#+!$,;'@()*[]")
+ fullurl = quote(fullurl, safe="%/:=&?~#+!$,;'@()*[]|")
if self.tempcache and fullurl in self.tempcache:
filename, headers = self.tempcache[fullurl]
fp = open(filename, 'rb')