Last modified: 2010-03-11 20:06:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24654, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22654 - A literal '+' in a value passed to the formula in formlink is converted to a space.
A literal '+' in a value passed to the formula in formlink is converted to a ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-26 14:56 UTC by Dan Bolser
Modified: 2010-03-11 20:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Bolser 2010-02-26 14:56:51 UTC
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
Comment 1 Yaron Koren 2010-03-11 20:06:02 UTC
Thanks for the bug report; fixed in v. 1.9.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links