Fix vulnerability (hopefully): anyone with rollback privileges can mark the rollback...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 10 Jan 2008 02:21:16 +0000 (02:21 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 10 Jan 2008 02:21:16 +0000 (02:21 +0000)
includes/Article.php

index 473e01d..2c83e5c 100644 (file)
@@ -2404,7 +2404,7 @@ class Article {
                        $wgRequest->getVal( 'from' ),
                        $wgRequest->getText( 'summary' ),
                        $wgRequest->getVal( 'token' ),
-                       $wgRequest->getBool( 'bot' ),
+                       $wgRequest->getBool( 'bot' ) and $wgUser->isAllowed( 'markbotedit' ),
                        $details
                );