From: DannyS712 Date: Wed, 7 Aug 2019 21:18:04 +0000 (+0000) Subject: Fix Special:NewSection showNoRedirectPage form handling X-Git-Tag: 1.34.0-rc.0~747^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=85a7c55f898ecde53820083f3d646fbd32a16dfd;p=lhc%2Fweb%2Fwiklou.git Fix Special:NewSection showNoRedirectPage form handling Bug: T207577 Change-Id: I3e476dffb4cb32b47f0f2f55e0f77ed74e85f302 --- diff --git a/includes/specials/SpecialNewSection.php b/includes/specials/SpecialNewSection.php index b503141d7b..62379f515c 100644 --- a/includes/specials/SpecialNewSection.php +++ b/includes/specials/SpecialNewSection.php @@ -60,7 +60,8 @@ class SpecialNewSection extends RedirectSpecialPage { } public function onFormSubmit( $formData ) { - $page = $formData['page']; + $title = $formData['page']; + $page = Title::newFromText( $title ); $query = [ 'action' => 'edit', 'section' => 'new' ]; $url = $page->getFullUrlForRedirect( $query ); $this->getOutput()->redirect( $url );