From bca270619f59ae23125aed3a7c7aba438640f260 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 16 Nov 2005 08:15:36 +0000 Subject: [PATCH] * (bug 2740) Accept image deletions on 'enter' submit from MSIE Confirmation checkbox is gone now; the submit button had been coopted to replace it in the submission variables, but some user agents don't go looking for a default button when you submit by hitting 'enter' in a text entry widget. Just check that the form was posted; we already have the edit token check to confirm that it's not a forged request. --- includes/ImagePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 1ab1c36f45..9531f240d5 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -383,7 +383,7 @@ END { global $wgUser, $wgOut, $wgRequest; - $confirm = $wgRequest->getBool( 'wpConfirmB' ); + $confirm = $wgRequest->wasPosted(); $image = $wgRequest->getVal( 'image' ); $oldimage = $wgRequest->getVal( 'oldimage' ); -- 2.20.1