Page MenuHomePhabricator

Double URL escaping in show/hide links for log entries
Closed, ResolvedPublic

Description

Simple patch fixing the bug

LogEventsList::getShowHideLinks uses Title::getPrefixedUrl, but the result is URL-encoded once again after it is passed through Skin::revDeleteLink. Title:getPrefixedDBkey should be used instead (c.f. PageHistory::historyLine).

This is probably not a problem for English-language wikis (since Special:Log does not have any escaped characters), but e.g. for a Czech-language wiki, that breaks the link (since Speciální:Log is double-encoded to Speci%25C3%25A1ln%25C3%25AD%3ALog).


Version: unspecified
Severity: normal

attachment LogEventsList.php.diff ignored as obsolete

Details

Reference
bz17283

Event Timeline

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

Created attachment 5755
Patch fixing both occurrences of the bug

Oh, and while we are at it, the same bug is on another place: RevisionDeleteForm::__construct

And, in this case, it affects even English-language wikis, I believe, since the doubly-escaped string is a title of any random page.

Attached: