web.py escape character full replacement

Replace all special symbols, not just ' ' and '&'.
This commit is contained in:
Bryan Schumaker 2010-11-04 10:14:31 -04:00
parent 30cb8298b1
commit 16da9fda2b
1 changed files with 4 additions and 4 deletions

View File

@ -6,10 +6,10 @@ import string
HEADER = libsaria.__vers__
#vals = [ ('%','25'), (' ','20'), ('&','26'), ('<','3C'), ('>','3E'),
# ('"','22'), ('#','23'), ('$','24'), ('\'','27'), ('+','2B'),
# (',','2C'), ('/','2F'), (':','3A'), ('[','5B'), (']','5D')]
vals = [ (' ','20'), ('&','26') ]
vals = [ ('%','25'), (' ','20'), ('&','26'), ('<','3C'), ('>','3E'),
('"','22'), ('#','23'), ('$','24'), ('\'','27'), ('+','2B'),
(',','2C'), ('/','2F'), (':','3A'), ('[','5B'), (']','5D')]
#vals = [ (' ','20'), ('&','26') ]
class Url: