From 73695ccdd2137a0a8b4063491c73b35c9da11022 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 12 Apr 2021 22:21:58 +0900 Subject: [PATCH] For backward compatibility, allow both GET and POST if an action does not specify method --- common/framework/parsers/moduleactionparser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/framework/parsers/moduleactionparser.php b/common/framework/parsers/moduleactionparser.php index 993127502..7fd4ad7a6 100644 --- a/common/framework/parsers/moduleactionparser.php +++ b/common/framework/parsers/moduleactionparser.php @@ -101,10 +101,12 @@ class ModuleActionParser extends BaseParser { $methods = ['POST']; } + /* elseif ($action_type === 'view' || starts_with('disp', $action_name)) { $methods = ['GET']; } + */ else { $methods = ['GET', 'POST'];