Hi Ben, I recently posted this message:
http://groups.google.com/group/pylons-discuss/msg/fa8507fbb7ea6173 I think the issue is webhelper uses quote_plus to encode url while Paste uses unquote to decode url. So "1 + 1" gets encoded to "1+%2b+1" and it gets decoded to "1+++1". Is there any particular reason Paste doesn't use unquote_plus? Thanks! --Michi On May 13, 4:13 pm, Ben Bangert <[EMAIL PROTECTED]> wrote: > On May 13, 2008, at 3:28 PM, jerry wrote: > > > First of all, excuse me for not digging into the issue deeply enough > > myself (will do that when I reach home.) > > > Routes 1.8 takes <a href="/one+%2B+one">one + one</a> and passes to my > > controller the undesirable id u'one+++one' > > Generally, web servers will decode %2B before Routes even sees it. So > quite likely, Routes sees "/one+++one", and has no idea there was > originally a %2B in there at all. This has been brought up before and > there's nothing really that can be done about the fact that Routes > will see the URL *after* its been decoded. > > Cheers, > Ben > > smime.p7s > 3KDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
