X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Finternals%2Fcore.create_dir_structure.php;h=3eecc49723c78615f8e28d0623984d07d09a58c9;hb=9b7c11be09e7a553b26667f673c6315209ddc210;hp=999cf59302c690c14e488f57d48c6761abcddb68;hpb=95a6ccc277bc41d750ced09fe5a1a779bde342c7;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); }