From: Roland Haeder Date: Tue, 26 May 2015 19:51:34 +0000 (+0200) Subject: Better use isReadableFile() instead of plain is_readable() is the later will X-Git-Url: https://git.mxchange.org/?p=hub.git;a=commitdiff_plain;h=b3fdb8014a8f1028502534e229bceea2e4f6686d Better use isReadableFile() instead of plain is_readable() is the later will thrown an E_WARNING if the path is not within open_basedir. isReadableFile() uses isReachableFilePath() which does this check. Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/template/class_BaseXmlTemplateEngine.php b/application/hub/main/template/class_BaseXmlTemplateEngine.php index db4e2cfa2..676e09b00 100644 --- a/application/hub/main/template/class_BaseXmlTemplateEngine.php +++ b/application/hub/main/template/class_BaseXmlTemplateEngine.php @@ -99,7 +99,7 @@ class BaseXmlTemplateEngine extends BaseTemplateEngine { } elseif (!is_dir($templateBasePath)) { // Is not a path throw new BasePathIsNoDirectoryException(array($this, $templateBasePath), self::EXCEPTION_INVALID_PATH_NAME); - } elseif (!is_readable($templateBasePath)) { + } elseif (!BaseFrameworkSystem::isReadableFile($templateBasePath)) { // Is not readable throw new BasePathReadProtectedException(array($this, $templateBasePath), self::EXCEPTION_READ_PROTECED_PATH); } diff --git a/core b/core index cdc1f3a9b..92c578b94 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit cdc1f3a9b3eefa6ca1b719c069e14c5ee2f9876a +Subproject commit 92c578b946b4fb17e705dd8ebabbd23e967584d0