minor changes in ApiCommand; added Ftps.get ApiCommand

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-24 20:52:21 +01:00
parent ca07621de7
commit 2f30d85d32
4 changed files with 121 additions and 16 deletions

View File

@@ -56,7 +56,7 @@ function json_response($status, $status_message = '', $data = null)
{
$resheader = $_SERVER["SERVER_PROTOCOL"] . " " . $status;
if (! empty($status_message)) {
$resheader .= ' ' . $status_message;
$resheader .= ' ' . str_replace("\n", " ", $status_message);
}
header($resheader);