commit 5568460a81b23d196d17f88f424427ebe8fe7167
parent 52a9db7a44f2376b578f040698c0eb7e1a0ba900
Author: markseu <mark2011@mayberg.se>
Date: Mon, 2 Feb 2015 14:55:52 +0100
Core update (better response handling)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/core/core.php b/system/core/core.php
@@ -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!");