How are you initially constructing this url?  In javascript, manually, or
some other way?

Basically, you'll need to escape any of the special URL encoding characters
(+, %, etc).  Depending on how you build the url, this could vary.

Bottom line: The + must be submitted to PHP as the encoded value: %2B

http://localhost/foo.py?AppName=notepad%2B%2B.exe


On Fri, Jun 13, 2014 at 4:06 PM, Eugene Kogan <[email protected]> wrote:
>
> I'm having an issue with URL encoding of URL parameters.
>
> An example URL for my web.py app is:
http://localhost/foo.py?AppName=notepad++.exe
>
> When I access AppName using web.input(), the result is "notepad  .exe"
(the two plus signs have been converted to spaces). It's not possible to
change the incoming URL parameters at the source.
>
> Any suggestions on how to solve this?
>
> --
> You received this message because you are subscribed to the Google Groups
"web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/webpy.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to