Core update (better response handling)

This commit is contained in:
markseu 2015-02-02 14:55:52 +01:00
parent 52a9db7a44
commit 5568460a81

View file

@ -578,7 +578,7 @@ class YellowPage
{
$this->error(500, "Parser '".$this->get("parser")."' does not exist!");
}
if($this->statusCode==200 && $this->yellow->getRequestHandler()=="core" &&
if($this->statusCode==200 &&
!$this->yellow->toolbox->isValidContentType($this->getHeader("Content-Type"), $this->getLocation()))
{
$this->error(500, "Type '".$this->getHeader("Content-Type")."' does not match file name!");