From 16da9fda2ba59b1683efda301e14d8fa611c3537 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Thu, 4 Nov 2010 10:14:31 -0400 Subject: [PATCH] web.py escape character full replacement Replace all special symbols, not just ' ' and '&'. --- libsaria/web.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsaria/web.py b/libsaria/web.py index 6d73d5af..c07130df 100644 --- a/libsaria/web.py +++ b/libsaria/web.py @@ -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: