Last modified: 2008-08-11 20:30:50 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 T14448, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12448 - #ifeq bug when using Magic words that include quotes (")
#ifeq bug when using Magic words that include quotes (")
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-29 21:18 UTC by Agony
Modified: 2008-08-11 20:30 UTC (History)
3 users (show)

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


Attachments

Description Agony 2007-12-29 21:18:12 UTC
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)
Comment 1 Jelte (WebBoy) 2008-08-11 20:30:50 UTC
On [["]] {{PAGENAME}} returns " to prevent parsing. This is not a bug in #ifeq.

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


Navigation
Links