dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6c5c306
)
Merge "(bug 45017) Check whether this request is a POST before allowing a query modul...
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 15 Feb 2013 22:13:36 +0000
(22:13 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 15 Feb 2013 22:13:36 +0000
(22:13 +0000)
includes/api/ApiQuery.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiQuery.php
b/includes/api/ApiQuery.php
index
619d1ca
..
c1a0407
100644
(file)
--- a/
includes/api/ApiQuery.php
+++ b/
includes/api/ApiQuery.php
@@
-276,6
+276,10
@@
class ApiQuery extends ApiBase {
// object by adding extra fields from the page table.
// This function will gather all the extra request fields from the modules.
foreach ( $modules as $module ) {
+ if ( !$this->getRequest()->wasPosted() && $module->mustBePosted() ) {
+ $this->dieUsageMsgOrDebug( array( 'mustbeposted', $module->getModuleName() ) );
+ }
+
$module->requestExtraData( $this->mPageSet );
}