Page MenuHomePhabricator

Wikilinks are filtered from the action text Special:Log
Open, LowPublic

Description

Author: martinmanscher

Description:
Current dawiki setting for [[MediaWiki:Deletedarticle]] is

slettede "$1" ([[Speciel:Whatlinkshere/$1|henvisninger]])

In [[Speciel:Recentchanges]], this shows up correct as
<nowiki>"([[Speciel:Whatlinkshere/Article|henvisninger]])"</nowiki>, i.e.
"([[Speciel:Whatlinkshere/Article|henvisninger]])", but in
[[Special:Log/delete]] it is rendered as

(Speciel:Whatlinkshere/[[Artikel]]|henvisninger)

Seems that $1 is '''<nowiki>[[Article]]</nowiki>''' in [[Special:Log/delete]],
but '''Article''' in [[Speciel:Recentchanges]].


Version: 1.9.x
Severity: minor

Details

Reference
bz7857

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:25 PM
bzimport set Reference to bz7857.
bzimport added a subscriber: Unknown Object (MLST).

martinmanscher wrote:

OK, bug is not wiki formatted here, but you get the idea.

rotemliss wrote:

Wikilinks are filtered from the action text Special:Log and not in
Special:Recentchnages, in the function LogPage::actionText. I'm not sure what's
its purpose.

ayg wrote:

How can this be fixed in a way that maintains reverse-compatibility with locally
modified messages? Make a new message?

rotemliss wrote:

(In reply to comment #3)

How can this be fixed in a way that maintains reverse-compatibility with locally
modified messages? Make a new message?

It's not the message which may have to be changed, but the code of the function
LogPage::actionText, which just removes the [[ and ]] symbols from the log text.

Anyway, the wikitext is not parsed in the action text of Special:Log anyway, and
an HTML link seems to be used in $1. It may be better to post the page name
itself to the log text as $1, not an HTML link, and parse the wikitext - maybe
like an edit summary.