Exit php script execution if http response code is >=400
Closed this issue · 3 comments
kosuodhmwa commented
So ´index.php´ file will not show the input mask (for target website) anymore!!
-> That "fix" (in ´X.Y., ... comments´ in ´Resonse.php´ does not seem to help:
// getHeaderLines
public function __construct($content = '', $status = 200, $headers = array()){
// X.Y., 2021-06-23 {
if($status >= 400)
{
exit;
}
// } X.Y., 2021-06-23
$this->headers = new ParamStore($headers);
$this->setContent($content);
$this->setStatusCode($status);
}
Will still show it. E.g. for a 404 as shown in that picture:
So: How to fix that issue?
!!! I don't think that it is usable for publishing if it shows that - everyone can abuse the proxy in that case !!!
kosuodhmwa commented
No answser...??
kosuodhmwa commented
kosuodhmwa commented
Problem solved by ignoring your product... ;-)