From 16ed0301cdf7443b79d93e5005b81b9934e58eb8 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 22 Jul 2007 23:25:26 +0000 Subject: [PATCH] (bug 9575) Accept upload description from GET parameters --- RELEASE-NOTES | 1 + includes/SpecialUpload.php | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d248b1e4f5..877b57d86d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -155,6 +155,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Introduce 'UserGetRights' hook; see docs/hooks.txt for more information * Pass new Revision to the 'ArticleInsertComplete' and 'ArticleSaveComplete' hooks; see docs/hooks.txt for more information +* (bug 9575) Accept upload description from GET parameters == Bugfixes since 1.10 == diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 0c66e93482..0affae1bc9 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -46,9 +46,11 @@ class UploadForm { global $wgAllowCopyUploads; $this->mDesiredDestName = $request->getText( 'wpDestFile' ); $this->mIgnoreWarning = $request->getCheck( 'wpIgnoreWarning' ); + $this->mComment = $request->getText( 'wpUploadDescription' ); if( !$request->wasPosted() ) { - # GET requests just give the main form; no data except wpDestfile. + # GET requests just give the main form; no data except destination + # filename and description return; } @@ -59,7 +61,6 @@ class UploadForm { $this->mReUpload = $request->getCheck( 'wpReUpload' ); $this->mUploadClicked = $request->getCheck( 'wpUpload' ); - $this->mComment = $request->getText( 'wpUploadDescription' ); $this->mLicense = $request->getText( 'wpLicense' ); $this->mCopyrightStatus = $request->getText( 'wpUploadCopyStatus' ); $this->mCopyrightSource = $request->getText( 'wpUploadSource' ); -- 2.20.1