Page MenuHomePhabricator

Consistency between character encoding in {{PAGENAMEE}}, {{SUBPAGENAMEE}} and {{FULLPAGENAMEE}}
Closed, ResolvedPublic

Description

Author: gangleri

Description:
Hallo!

This is a trivial issue:

The examples in the refered section at the url show that "(" and ")" are
encoded differently in {{PAGENAMEE}} then in {{SUBPAGENAMEE}} and {{FULLPAGENAMEE}}.

I suggest to use the same encoding consistently.
This will require changes in
http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_6/phase3/includes/Title.php?view=markup
see / compare: function getPartialURL() , function getPrefixedURL() and function
getSubpageUrlForm() .

Thanks in advance!

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: trivial
URL: http://en.wikipedia.org/wiki/User:Gangleri/tests/bugzilla/url_%28_._:_%2C_%3B_%2B_%26_%3F_%29_encoding#PAGENAMEE.2C_SUBPAGENAMEE_and_FULLPAGENAMEE

Details

Reference
bz5530

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:11 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz5530.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

The functions referenced all do something a little bit different to the URL once
it's obtained. Some of them unescape the parentheses; in all cases, a comment
"is this safe?" is present. So far, I've seen no evidence it's not, but perhaps
it would be best if we removed this step from each case to guarantee proper URLs.

marco wrote:

Fix: http://pastebin.com/m6cde421

This removes every transformation of parentheses and ensures proper URIs.