Skip to content

Commit

Permalink
fix #2099 #2075 이슈에서 추가한 act에 대한 check_csrf 옵션의 처리방법으로 인해 특정 액션에 대해 동…
Browse files Browse the repository at this point in the history
…작이 수행되지 않는 문제 고침
  • Loading branch information
bnu committed Jun 8, 2017
1 parent 9bbd41f commit ce63e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/module/ModuleHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ function procModule()
$logged_info = Context::get('logged_info');

// check CSRF for non-GET actions
$use_check_csrf = !isset($xml_info->action->{$this->act}) || $xml_info->action->{$this->act}->check_csrf !== 'false';
$use_check_csrf = isset($xml_info->action->{$this->act}) && $xml_info->action->{$this->act}->check_csrf !== 'false';
if($use_check_csrf && $_SERVER['REQUEST_METHOD'] !== 'GET' && Context::isInstalled() && !checkCSRF())
{
$this->error = 'msg_invalid_request';
Expand Down

0 comments on commit ce63e02

Please sign in to comment.