Normalize user provided URL link for Special:LinkSearch page
authorRamunas Geciauskas <ramunas@geciauskas.com>
Tue, 8 Mar 2016 20:31:55 +0000 (15:31 -0500)
committerRamunas Geciauskas <ramunas@geciauskas.com>
Tue, 8 Mar 2016 20:36:28 +0000 (15:36 -0500)
commit88597cc944e75caa057aa161d7fac26f34f6d488
tree97384d1a7f8ddad0d723871b807fd390c5395252
parent687e779b97c059e55f423f97c2bb45e0512c1e77
Normalize user provided URL link for Special:LinkSearch page

Using Parser::normalizeLinkUrl() to normalize links before passing them to
the Special:LinkSearch handler allows us to avoid URL encoding issues when
searching for URL with special/escaped characters.
E.g. As listed in T126913 currently user needs to provide URL exactly as it
is stored in MediaWiki (' vs %27) in order to find it.
Normalizing URL will allow searching in Special:LinkSearch page using both
direct and encoded characters (since it will get normalized to the uniform
format).

Bug: T126913
Change-Id: If17b1896a3f40ba99c78fccb9f69100b2a0f5cba
includes/specials/SpecialLinkSearch.php