1
0

and more selftest fixes... ... ... ... ...

This commit is contained in:
2020-01-20 18:58:26 +01:00
parent ef2c76c483
commit e529b2dca3
2 changed files with 12 additions and 5 deletions

View File

@@ -41,6 +41,8 @@ $cmd = strtolower($ROUTE->parameter['cmd']);
if (!array_key_exists($cmd, $API_COMMANDS))
{
ob_clean();
print("<div style=\"white-space: pre;font-family: monospace;\">\n");
print(" \n");
print(" \n");
print(" ... \n");
@@ -66,8 +68,11 @@ if (!array_key_exists($cmd, $API_COMMANDS))
print(" ::::::`:::::;' / / `# \n");
print(" \n");
print(" \n");
print("</div>\n");
print("Wrong command.");
$reaper = ob_get_clean();
$FRAME_OPTIONS->forceResult(400, 'Wrong command.');
$FRAME_OPTIONS->forceResult(404, $reaper);
return;
}