Page MenuHomePhabricator

Use of {{urlencode}} parser function breaks client-side message parsing
Closed, InvalidPublicBUG REPORT

Description

See parent bug (T246879) for the original report. (Note that the parent bug has been fixed with a work-around.)

It seems that if a local Mediawiki message includes {{urlencode|something}}, it will break the client-side message parsing.

Here's the actual code that is being called on the client-side:

mw.message( 'file-deleted-duplicate', filename ).parse()

Event Timeline

kaldari updated the task description. (Show Details)

Assuming this task is about the MediaWiki-Parser project, hence adding that project tag so other people can also find this task when searching via projects.

@kaldari I already gave the solution to that:

I think I have it.

@MarkTraceur You should add something like

urlencode: function ( urldata ) {
	return encodeURIComponent( urldata );
},

to mediawiki.jqueryMsg.js.