1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

public/pluginhandler: log invalid requests

This commit is contained in:
Andrew Dolgov 2019-08-15 17:17:25 +03:00
parent bdf29856fb
commit 0e3b71c535

View File

@ -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);
}