Page MenuHomePhabricator

A literal '+' in a value passed to the formula in formlink is converted to a space.
Closed, ResolvedPublic

Description

Author: dan.bolser

Description:
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:


Version: unspecified
Severity: normal

Details

Reference
bz22654

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:07 PM
bzimport set Reference to bz22654.

Thanks for the bug report; fixed in v. 1.9.