wrong mode in index.php now gives a 404 error (#15); anti cross-site-request token
This commit is contained in:
parent
186d770741
commit
ab0ac45415
4 changed files with 48 additions and 1 deletions
|
|
@ -26,7 +26,9 @@ class ZAPController {
|
|||
$this->mode = ucfirst($mode);
|
||||
$clazz = $this->prefix . $this->mode;
|
||||
if (!class_exists($clazz)) {
|
||||
die('Wrong parameter');
|
||||
http_response_code(404);
|
||||
include getZAPTemplate('404');
|
||||
die();
|
||||
}
|
||||
$this->action = new $clazz();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue