diff options
author | Andrew Dolgov <[email protected]> | 2019-08-15 17:17:25 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-15 17:17:25 +0300 |
commit | 0e3b71c5351d46d7192dc6df015880059f34a839 (patch) | |
tree | d28fb9fa8b8bdb78d84e7ce4983bb3c2299ee2b8 | |
parent | bdf29856fb2d3c2c64f3188f7c139521d84c92bb (diff) |
public/pluginhandler: log invalid requests
-rwxr-xr-x | classes/handler/public.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 06c01df57..05a84494b 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -1216,14 +1216,17 @@ class Handler_Public extends Handler { if ($pclass->is_public_method($method)) { $pclass->$method(); } else { + user_error("pluginhandler: Requested private method '$method' of plugin '$plugin'."); header("Content-Type: text/json"); print error_json(6); } } else { + user_error("pluginhandler: Requested unknown method '$method' of plugin '$plugin'."); header("Content-Type: text/json"); print error_json(13); } } else { + user_error("pluginhandler: Requested method '$method' of unknown plugin '$plugin'."); header("Content-Type: text/json"); print error_json(14); } |