Page MenuHomePhabricator

Parser breaks on character combination in parameter value in a template call
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Take an arbitrary template, for example "Template:!"
  • Transclude the template, and supply the value "-{" as either an anonymous or named parameter

See the examples at: the Semantic MediaWiki sandbox wiki.

What happens?:

The template is not transcluded, and the call to the template is rendered as plaintext (the parser fails to parse the template call).

What should have happened instead?:

The transclusion should have succeeded; the pipe-symbol should have been rendered instead of the template call.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

  • MediaWiki 1.39.7
  • PHP 7.4.33 (apache2handler)
  • MariaDB 10.5.23-MariaDB-0+deb11u1
  • ICU 67.1
  • Elasticsearch 7.10.2
  • LuaSandbox 3.0.3
  • Lua 5.1.5
  • Pygments 2.11.2
  • Elasticsearch 7.10.2

See Special:Version on the SMW sandbox wiki.

Other information (browser name/version, screenshots, etc.):

See the screenshot for an example; the second and third line fail due to the character combination "-{"

image.png (346×1 px, 73 KB)