when quoting forbidden characters. There are scripts out there that
break with lower case, therefore I guess %%%X should be used."
I agree, so am fixing this.
for i in range(len(res)):
c = res[i]
if not _fast_safe.has_key(c):
- res[i] = '%%%02x' % ord(c)
+ res[i] = '%%%02X' % ord(c)
return ''.join(res)
def quote(s, safe = '/'):
for i in range(len(res)):
c = res[i]
if c not in safe:
- res[i] = '%%%02x' % ord(c)
+ res[i] = '%%%02X' % ord(c)
return ''.join(res)
def quote_plus(s, safe = ''):