X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2Flibs%2Finternals%2Fcore.is_trusted.php;h=429973158d6cb75b3a6126f471aac3218fb6dc56;hb=71a598e9ace080c3a636a39cc110e1ed169a1a4e;hp=f0bd2fb8c96f945e9e0d9015749e07a6e9bf84b4;hpb=e034221efbc7970ec58be22d7517fd3c503dc903;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/libs/internals/core.is_trusted.php b/wwwroot/smarty/libs/internals/core.is_trusted.php index f0bd2fb..4299731 100644 --- a/wwwroot/smarty/libs/internals/core.is_trusted.php +++ b/wwwroot/smarty/libs/internals/core.is_trusted.php @@ -25,7 +25,7 @@ function smarty_core_is_trusted($params, &$smarty) if (!empty($curr_dir) && is_readable ($curr_dir)) { $_cd = realpath($curr_dir); if (strncmp($_rp, $_cd, strlen($_cd)) == 0 - && $_rp{strlen($_cd)} == DIRECTORY_SEPARATOR ) { + && substr($_rp, strlen($_cd), 1) == DIRECTORY_SEPARATOR ) { $_smarty_trusted = true; break; }