@@ 489-511 (lines=23) @@ | ||
486 | } |
|
487 | ||
488 | // check REQUEST_METHOD in controller |
|
489 | if($type == 'controller') |
|
490 | { |
|
491 | $allowedMethod = $xml_info->action->{$this->act}->method; |
|
492 | ||
493 | if(!$allowedMethod) |
|
494 | { |
|
495 | $allowedMethodList[0] = 'POST'; |
|
496 | } |
|
497 | else |
|
498 | { |
|
499 | $allowedMethodList = explode('|', strtoupper($allowedMethod)); |
|
500 | } |
|
501 | ||
502 | if(!in_array(strtoupper($_SERVER['REQUEST_METHOD']), $allowedMethodList)) |
|
503 | { |
|
504 | $this->error = "msg_invalid_request"; |
|
505 | $oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode); |
|
506 | $oMessageObject->setError(-1); |
|
507 | $oMessageObject->setMessage($this->error); |
|
508 | $oMessageObject->dispMessage(); |
|
509 | return $oMessageObject; |
|
510 | } |
|
511 | } |
|
512 | ||
513 | if($this->module_info->use_mobile != "Y") |
|
514 | { |
|
@@ 658-680 (lines=23) @@ | ||
655 | ||
656 | // SECISSUE also check foward act method |
|
657 | // check REQUEST_METHOD in controller |
|
658 | if($type == 'controller') |
|
659 | { |
|
660 | $allowedMethod = $xml_info->action->{$forward->act}->method; |
|
661 | ||
662 | if(!$allowedMethod) |
|
663 | { |
|
664 | $allowedMethodList[0] = 'POST'; |
|
665 | } |
|
666 | else |
|
667 | { |
|
668 | $allowedMethodList = explode('|', strtoupper($allowedMethod)); |
|
669 | } |
|
670 | ||
671 | if(!in_array(strtoupper($_SERVER['REQUEST_METHOD']), $allowedMethodList)) |
|
672 | { |
|
673 | $this->error = "msg_invalid_request"; |
|
674 | $oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode); |
|
675 | $oMessageObject->setError(-1); |
|
676 | $oMessageObject->setMessage($this->error); |
|
677 | $oMessageObject->dispMessage(); |
|
678 | return $oMessageObject; |
|
679 | } |
|
680 | } |
|
681 | ||
682 | if($type == "view" && Mobile::isFromMobilePhone()) |
|
683 | { |