Page MenuHomePhabricator

#ifeq bug when using Magic words that include quotes (")
Closed, InvalidPublic

Description

Author: agony79

Description:
When using Magic words (such as {{PAGENAME}}) with quotes, this function do not match to " but match to ".

Simple test case under [["]] could be:

{{#ifeq: " | " | 1 | 0}} (return 1 as supposed)
{{#ifeq: " | {{PAGENAME}} | 1 | 0}} (return 0, should return 1)
{{#ifeq: " | {{PAGENAME}} | 1 | 0}} (return 1, should return 0)
{{#ifeq: {{localurl:"}} | {{localurl:{{PAGENAME}}}} | 1 | 0}} (return 1 as supposed)


Version: unspecified
Severity: normal

Details

Reference
bz12448

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:57 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz12448.
bzimport added a subscriber: Unknown Object (MLST).

webboy wrote:

On [["]] {{PAGENAME}} returns " to prevent parsing. This is not a bug in #ifeq.