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