From b9cba54596cf7dc8f0c27d0b83eabe050a509283 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 3 Oct 2006 18:39:09 +0000 Subject: [PATCH] * (bug 6617) Validate timestamps on Special:Undelete --- RELEASE-NOTES | 1 + includes/SpecialUndelete.php | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1e1f8fd21b..4fe703416e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -254,6 +254,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Committed a bunch of live hacks from Wikimedia servers * (bug 6889) PHP notices in thumb.php with missing params * Cleaner error behavior on thumb.php with invalid page selection +* (bug 6617) Validate timestamps on Special:Undelete == Languages updated == diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index c91f1a9500..1db80e52c6 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -396,9 +396,10 @@ class UndeleteForm { function UndeleteForm( &$request, $par = "" ) { global $wgUser; - $this->mAction = $request->getText( 'action' ); - $this->mTarget = $request->getText( 'target' ); - $this->mTimestamp = $request->getText( 'timestamp' ); + $this->mAction = $request->getVal( 'action' ); + $this->mTarget = $request->getVal( 'target' ); + $time = $request->getVal( 'timestamp' ); + $this->mTimestamp = $time ? wfTimestamp( TS_MW, $time ) : ''; $this->mFile = $request->getVal( 'file' ); $posted = $request->wasPosted() && -- 2.20.1