Router, Logger, Bump v1.5
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Api\Template {
|
||||
}
|
||||
|
||||
$templateDir = WEBROOT . "/core/Templates/";
|
||||
$templateCache = WEBROOT . "/core/TemplateCache/";
|
||||
$templateCache = WEBROOT . "/core/Cache/Templates/";
|
||||
$path = realpath($templateDir . $templateFile);
|
||||
if (!startsWith($path, realpath($templateDir))) {
|
||||
return $this->createError("Template file not in template directory");
|
||||
|
||||
Reference in New Issue
Block a user