Merge "Fix GUI for Special:Tags if a user has deletechangetags permission only"
[lhc/web/wiklou.git] / includes / specials / SpecialLinkSearch.php
index bc33b8e..1ecbee0 100644 (file)
@@ -158,7 +158,7 @@ class LinkSearchPage extends QueryPage {
 
                if ( $target != '' ) {
                        $this->setParams( [
-                               'query' => $target2,
+                               'query' => Parser::normalizeLinkUrl( $target2 ),
                                'namespace' => $namespace,
                                'protocol' => $protocol ] );
                        parent::execute( $par );
@@ -299,4 +299,14 @@ class LinkSearchPage extends QueryPage {
        protected function getGroupName() {
                return 'redirects';
        }
+
+       /**
+        * enwiki complained about low limits on this special page
+        *
+        * @see T130058
+        * @todo FIXME This special page should not use LIMIT for paging
+        */
+       protected function getMaxResults() {
+               return max( parent::getMaxResults(), 60000 );
+       }
 }