Page MenuHomePhabricator

<nowiki> and <pre> in templates causes gibberish when combined with subst:
Closed, ResolvedPublic

Description

Author: colin.pitts

Description:
If a template Foo has the following content:

<nowiki>[[Image:Blah.jpg]]</nowiki>

And the template is included on another page with {{subst:Foo}}, then gibberish
along the following lines will be generated.

NaodW29-nowiki72f7fedc5c4276c00000001

This occurs for any markup surrounded by <nowiki></nowiki>. If multiple nowiki
blocks exist, a separate string of gibberish will appear for each block, with
the last digit incrementing.

This was first spotted with enwiki's [[Template:Welcome]], and appears any time
it is used with {{subst:Welcome}}.

The problem does not manifest without subst:, that is {{Welcome}} displays as
expected.


Version: 1.4.x
Severity: normal

Details

Reference
bz1188
TitleReferenceAuthorSource BranchDest Branch
Support DataHub transformersrepos/data-engineering/airflow-dags!507tchinsupport-datahub-transformersmain
Add event streams datahub transformationrepos/data-engineering/airflow-dags!498tchinevent-platform-integrationmain
ci: Publish a multi-platform image once morerepos/releng/blubber!59dduvallreview/publish-multi-platformexperimental/native-llb
ci: Build for both linux/amd64 and linux/arm64repos/releng/blubber!36dduvallreview/multi-targetmain
buildkit: Specify build platforms based on that of the workersrepos/releng/blubber!25dduvallreview/default-build-platformmain
ci: Build for both linux/amd64 and linux/arm64repos/releng/blubber!24dduvallreview/ci/multi-platformmain
buildkit: Support building for multiple target platformsrepos/releng/blubber!15dduvallreview/support-multi-platformmain
Customize query in GitLab

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:07 PM
bzimport set Reference to bz1188.
bzimport added a subscriber: Unknown Object (MLST).

wiki.bugzilla wrote:

the same was already noticed by many users who have images within their signatures

sirjective wrote:

@Signatures

The problem arises from math-tags within link texts:

The link
[[Pi|<math>\pi</math>]]
did work as expected, but doesn't do now.

de:Benutzer:SirJective

leercontainer-bugzilla wrote:

*** Bug 1449 has been marked as a duplicate of this bug. ***

leercontainer-bugzilla wrote:

This also happens when SUBT:ituting templates with <pre></pre>, take a look at
http://nn.wikipedia.org/wiki/Brukar:Dittaeva/Sandkasse
where {{liminn:årstal}} were used ("liminn" is the nn translation of subst),
which should have substituted the page
http://nn.wikipedia.org/wiki/Mal:%C3%85rstal
as I'm sure you all know :-)

1.4.0 released; kicking back to 1.5 blockers.

Fixed in CVS HEAD and REL1_4. Will appear in 1.4.2 release.

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:21 AM