Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item8924: added URL encoding to values passed via meta to JS. There a…
…re two important changes here that need careful consideration. First, because foswiki.PREFERENCE values are now URL encoded, anything that bypasses foswiki.getPreference and uses foswiki.getMetaTag (or similar) to retrieve a preference value from EXPORTEDPREFERENCES needs to decode the value. Second, in order to support this I needed a proper URL encoding, but found that ENCODE doesn't provide one. After some detailed examination of the history of <br> encoding (which stretches back to a checkin in early 2001), I couldn't find any rational reason for it, other than sloppy coding. I have removed it, which means that newlines will now be encoded using the normal URL encoding. There's a chance this may impact a wiki application, but TBH I think it's the lesser of the evils to fix this poisonous legacy now. If people disagree, then the alternative is to add a type=uri that does a proper encoding. git-svn-id: http://svn.foswiki.org/trunk@7694 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
CrawfordCurrie
authored and
CrawfordCurrie
committed
Jun 8, 2010
1 parent
f54647f
commit 336175d
Showing
4 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters