diff --git a/scan.php b/scan.php index 0b8089a..6a4d036 100644 --- a/scan.php +++ b/scan.php @@ -163,6 +163,11 @@ if ($cmd) { header('Content-type: text/xml'); system("$cmd", $retcode); + if ($retcode) { + http_response_code(405); + die(); + } + exit(); }