public/pluginhandler: log invalid requests
This commit is contained in:
parent
bdf29856fb
commit
0e3b71c535
|
@ -1216,14 +1216,17 @@ class Handler_Public extends Handler {
|
||||||
if ($pclass->is_public_method($method)) {
|
if ($pclass->is_public_method($method)) {
|
||||||
$pclass->$method();
|
$pclass->$method();
|
||||||
} else {
|
} else {
|
||||||
|
user_error("pluginhandler: Requested private method '$method' of plugin '$plugin'.");
|
||||||
header("Content-Type: text/json");
|
header("Content-Type: text/json");
|
||||||
print error_json(6);
|
print error_json(6);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
user_error("pluginhandler: Requested unknown method '$method' of plugin '$plugin'.");
|
||||||
header("Content-Type: text/json");
|
header("Content-Type: text/json");
|
||||||
print error_json(13);
|
print error_json(13);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
user_error("pluginhandler: Requested method '$method' of unknown plugin '$plugin'.");
|
||||||
header("Content-Type: text/json");
|
header("Content-Type: text/json");
|
||||||
print error_json(14);
|
print error_json(14);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue