You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2006/07/30 00:50:17 UTC
[jira] Updated: (TAPESTRY-977) XTile component incorrectly quotes
request URLs
[ http://issues.apache.org/jira/browse/TAPESTRY-977?page=all ]
Jesse Kuhnert updated TAPESTRY-977:
-----------------------------------
Fix Version/s: 4.1.1
(was: 4.1)
> XTile component incorrectly quotes request URLs
> -----------------------------------------------
>
> Key: TAPESTRY-977
> URL: http://issues.apache.org/jira/browse/TAPESTRY-977
> Project: Tapestry
> Issue Type: Bug
> Components: Contrib
> Affects Versions: 4.0.1
> Reporter: Paul Field
> Fix For: 4.1.1
>
>
> XTile.script file contains this function:
> function quoteUrl(text)
> {
> return escape(text).replace(/\+/g, '%2C').replace(/\"/g,'%22').replace(/\'/g, '%27');
> }
> Which enocdes a '+' as %2C which decodes as a comma.
> The '%2C' should be '%2B'
> Perhaps the code should actually use the JavaScript encodeURI() or encodeURIComponent() functions. See:
> http://xkr.us/articles/javascript/encode-compare/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org