https://bugzilla.wikimedia.org/show_bug.cgi?id=23822

--- Comment #6 from se4598 <[email protected]> ---
I think pretty sure the bug lies in this line:
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMWSearch.git/b327da0f987979b3be1e6c9d9d1c53e4197200b2/MWSearch_body.php#L211

The parameter $nsText seems to be referring in this context to the target ns,
not to the redirect ns. But the real redirect ns is extracted later[1] for the
title-object/linker as result of this call, but the erroneous snipped
(displayed text) is already generated.

I'm feeling myself uncomfortable to fix this though as I'm not really
understanding the whole code and unable to test it.

[1]
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FMWSearch.git/b327da0f987979b3be1e6c9d9d1c53e4197200b2/MWSearch_body.php#L220

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to