Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item12888: added percent-encoding test to FormDefTests, and refactore…
…d duplicate code, removing call to inappropriate Foswiki::urlDecode that was breaking George's tests. The percent encoding is a bit of a mystery; when it was first coded, the subclasses of ListFieldDefinition all did an urlDecode on labels in parsed +values. This was undocumented, but presumably was intended to protect any characters that might interfere with the rendering of the form table, but were desireable in the label. Quite why URL encoding was chosen over the more obvious entity encoding is obscure, as is the reasoning behind applying the encoding to the label, but not the value. Only MichaelDaum knows. The percent-encoding remains undocumented, and therefore a potential gotcha for the unwary.
- Loading branch information
Comment
committed
May 22, 2015
1 parent
9613bf2
commit 28f3ce0
Showing
8 changed files
with
73 additions
and
127 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
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