Add safemode to special redirect parameters that are preserved
authorDannyS712 <DannyS712.enwiki@gmail.com>
Thu, 4 Jul 2019 12:36:06 +0000 (12:36 +0000)
committerDannyS712 <DannyS712.enwiki@gmail.com>
Thu, 4 Jul 2019 12:38:33 +0000 (12:38 +0000)
Bug: T202031
Change-Id: I9288c1da3da2493f2ed44bf641dfbe1cfbc77f00

includes/specialpage/RedirectSpecialPage.php

index c28b89e..c1b21e6 100644 (file)
@@ -74,7 +74,7 @@ abstract class RedirectSpecialPage extends UnlistedSpecialPage {
                $request = $this->getRequest();
 
                foreach ( array_merge( $this->mAllowedRedirectParams,
-                               [ 'uselang', 'useskin', 'debug' ] // parameters which can be passed to all pages
+                               [ 'uselang', 'useskin', 'debug', 'safemode' ] // parameters which can be passed to all pages
                        ) as $arg ) {
                        if ( $request->getVal( $arg, null ) !== null ) {
                                $params[$arg] = $request->getVal( $arg );