[hunchentoot-devel] Probably a bug in url-encode/url-decode

Daniel Weinreb dlw at itasoftware.com
Fri Mar 19 15:35:01 UTC 2010


Sorry, actually the latest spec is

http://tools.ietf.org/html/rfc3986

See also http://en.wikipedia.org/wiki/Percent-encoding

Andrey Moskvitin wrote:
> > See section 2 of this document:
> >
> > http://www.ietf.org/rfc/rfc2396.txt
>
> Hmm, I can't find a explanation in this RFC  why the function 
> huchentoot:url-decode substitute # \+ at # \Space :(
Yes, apparently if you put a "+" in the string that is
the argument to huchentoot:url-decode, it turns into
a space.  However, I don't think it is legal/valid to
have a "+" character in an encoded URI.

Do you know of a string (call it s) such that

(equalp (hunchentoot:url-decode (hunchentoot:url-encode s)) s)

is false?
>
> Andrey
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20100319/c522d79e/attachment.html>


More information about the Tbnl-devel mailing list