From 85a7c55f898ecde53820083f3d646fbd32a16dfd Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Wed, 7 Aug 2019 21:18:04 +0000 Subject: [PATCH] Fix Special:NewSection showNoRedirectPage form handling Bug: T207577 Change-Id: I3e476dffb4cb32b47f0f2f55e0f77ed74e85f302 --- includes/specials/SpecialNewSection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.20.1