]> git.mxchange.org Git - hub.git/commitdiff
Better use isReadableFile() instead of plain is_readable() is the later will
authorRoland Haeder <roland@mxchange.org>
Tue, 26 May 2015 19:51:34 +0000 (21:51 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 26 May 2015 19:51:34 +0000 (21:51 +0200)
thrown an E_WARNING if the path is not within open_basedir. isReadableFile() uses
isReachableFilePath() which does this check.

Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/template/class_BaseXmlTemplateEngine.php
core

index db4e2cfa21efad1622f7cc24d39157418bb00795..676e09b005dfcba3c5110e38a0143fc03b87f07f 100644 (file)
@@ -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 cdc1f3a9b3eefa6ca1b719c069e14c5ee2f9876a..92c578b946b4fb17e705dd8ebabbd23e967584d0 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit cdc1f3a9b3eefa6ca1b719c069e14c5ee2f9876a
+Subproject commit 92c578b946b4fb17e705dd8ebabbd23e967584d0