From: Brion Vibber Date: Wed, 16 Nov 2005 08:15:36 +0000 (+0000) Subject: * (bug 2740) Accept image deletions on 'enter' submit from MSIE X-Git-Tag: 1.6.0~1171 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=bca270619f59ae23125aed3a7c7aba438640f260;p=lhc%2Fweb%2Fwiklou.git * (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. --- 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' );