r91408 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91407‎ | r91408 | r91409 >
Date:14:40, 4 July 2011
Author:ialex
Status:ok
Tags:
Comment:
Use WebRequest::getValues() instead of raw $_REQUEST
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -619,7 +619,7 @@
620620 if( $this->mRestore || $this->mInvert ) {
621621 $timestamps = array();
622622 $this->mFileVersions = array();
623 - foreach( $_REQUEST as $key => $val ) {
 623+ foreach( $this->mRequest->getValues() as $key => $val ) {
624624 $matches = array();
625625 if( preg_match( '/^ts(\d{14})$/', $key, $matches ) ) {
626626 array_push( $timestamps, $matches[1] );

Status & tagging log