r71988 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71987‎ | r71988 | r71989 >
Date:22:12, 30 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
adding extra safeguard on campaign detail form processing
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialCentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php
@@ -525,7 +525,7 @@
526526 } else {
527527
528528 // Handle form submissions from campaign detail interface
529 - if ( $wgRequest->wasPosted() ) {
 529+ if ( $this->editable && $wgRequest->wasPosted() ) {
530530
531531 // Check authentication token
532532 if ( $wgUser->matchEditToken( $wgRequest->getVal( 'authtoken' ) ) ) {

Status & tagging log