URL encoding and the "+" char

Dan Washusen <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hey All,
I'm attempting to add a base64 encoded string as a URL parameter in a FM
template.

<a id="activate" href="action?token=${token?url}">Click Here</a>


This works fine but it appears that the Freemarker URL encoding doesn't
encode the "+" chars contained in the token.  When I attempt to decode the
token using either commons-codec or the java.util.URLDecoder the "+" is
replaced by a space (" ") and my token is corrupt.

So I guess my question is; is this a bug or a feature? :)

Cheers,
Dan

------------------------------------------------------------------------------

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.