I've come across an issue involving the use of '+' and '%20' for
representing spaces in a URL.
Many apps treat the plus sign and the %20 code the same, however
pylons does not. Lets say you have a def which takes in one argument,
lets call it 'title', sets it as c.title, and a mako template
Just wanted to update anyone who comes across this and needs a (bad)
solution. I managed to get this to work using something quite ugly.
Instead of:
redirect_to(controller='page', action='index', title=title)
I used:
redirect_to('/page/index/'+str(title))
Getting rid of the str() in the
If you put a URL into some HTML, you should HTML escape it. Yes, this
is strange. I wrote about it here:
http://jjinux.blogspot.com/2006/03/html-escaping-s-in-urls-in-html.html
Best Regards,
-jj
On Thu, Jun 19, 2008 at 11:48 AM, Tom [EMAIL PROTECTED] wrote:
Just wanted to update anyone who
Hmm, upon rereading your post, I'm not sure if the two things are
connected. Sorry.
-jj
On Thu, Jun 19, 2008 at 1:57 PM, Shannon -jj Behrens [EMAIL PROTECTED] wrote:
If you put a URL into some HTML, you should HTML escape it. Yes, this
is strange. I wrote about it here:
I came upon a similar issue a while back.
I don't have an answer for you, BUT I did want to post some info in
case anyone ends up making a patch based on this...
basically, the world of 'url safe chars' is a little confusing, as
there are multiple standards and most people still use and