summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-15 17:17:25 +0300
committerAndrew Dolgov <[email protected]>2019-08-15 17:17:25 +0300
commit0e3b71c5351d46d7192dc6df015880059f34a839 (patch)
treed28fb9fa8b8bdb78d84e7ce4983bb3c2299ee2b8 /classes/handler/public.php
parentbdf29856fb2d3c2c64f3188f7c139521d84c92bb (diff)
public/pluginhandler: log invalid requests
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-xclasses/handler/public.php3
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);
}