X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Finternals%2Fcore.create_dir_structure.php;h=3eecc49723c78615f8e28d0623984d07d09a58c9;hb=6cfa89c1d31d80113ea9e59580bbd9740ddf2e4e;hp=999cf59302c690c14e488f57d48c6761abcddb68;hpb=e034221efbc7970ec58be22d7517fd3c503dc903;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/internals/core.create_dir_structure.php b/wwwroot/smarty/libs/internals/core.create_dir_structure.php index 999cf59..3eecc49 100644 --- a/wwwroot/smarty/libs/internals/core.create_dir_structure.php +++ b/wwwroot/smarty/libs/internals/core.create_dir_structure.php @@ -22,7 +22,7 @@ function smarty_core_create_dir_structure($params, &$smarty) /* unix-style paths */ $_dir = $params['dir']; $_dir_parts = preg_split('!/+!', $_dir, -1, PREG_SPLIT_NO_EMPTY); - $_new_dir = ($_dir{0}=='/') ? '/' : getcwd().'/'; + $_new_dir = (substr($_dir, 0, 1)=='/') ? '/' : getcwd().'/'; if($_use_open_basedir = !empty($_open_basedir_ini)) { $_open_basedirs = explode(':', $_open_basedir_ini); }