https://bugzilla.wikimedia.org/show_bug.cgi?id=22654
Summary: A literal '+' in a value passed to the formula in
formlink is converted to a space.
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: SemanticForms
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
A literal '+' in a value passed to the formula in formlink is converted to a
space in the form field.
I only tried this using the default mode of operation of formlink, which passes
the formula parameter in the URL (GET). The problem is that the + character in
the URL is sometimes interpreted as a space by CGI applications. For example,
the #urlencode parser function converts spaces into +s for URL encoding!
Here is the code that causes problems:
{{#formlink: TNAME
| Add a Link
| link
| TNAME[fields]={{PAGENAME}}
}}
It works to link instances of 'TNAME' to the current page, however, because the
'{{PAGENAME}}' gets changed (when it contains a +), the resulting link is
broken.
You can see problem here:
* http://seqanswers.com/wiki/Dummy%2Bpage
* http://seqanswers.com/wiki/Template:Links
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l