We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70ade0f commit bed604eCopy full SHA for bed604e
classes/module/ModuleHandler.class.php
@@ -411,7 +411,7 @@ function procModule()
411
$logged_info = Context::get('logged_info');
412
413
// check CSRF for POST actions
414
- if(Context::getRequestMethod() === 'POST' && Context::isInstalled() && $this->act !== 'procFileUpload' && !checkCSRF()) {
+ if($_SERVER['REQUEST_METHOD'] !== 'GET' && Context::isInstalled() && $this->act !== 'procFileUpload' && !checkCSRF()) {
415
$this->error = 'msg_invalid_request';
416
$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
417
$oMessageObject->setError(-1);
0 commit comments