From e8e9be117662455a40cca73887eda84bb8e62032 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 23 Jun 2007 19:37:31 +0000 Subject: [PATCH] (bug 10344) Don't follow a redirect after changing its protection level --- RELEASE-NOTES | 1 + includes/ProtectionForm.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 032d8613d4..92c2f9bf46 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -197,6 +197,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Fixed installation on MyISAM or old InnoDB with charset=utf8, was giving overlong key errors. * Fixed zero-padding issues with MySQL 5 binary schema +* (bug 10344) Don't follow a redirect after changing its protection level == API changes since 1.10 == diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 5eff237861..8ec5fd438d 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -80,7 +80,7 @@ class ProtectionForm { if( $wgRequest->wasPosted() ) { if( $this->save() ) { global $wgOut; - $wgOut->redirect( $this->mTitle->getFullUrl() ); + $wgOut->redirect( $this->mTitle->getFullUrl( 'redirect=no' ) ); } } else { $this->show(); -- 2.20.1