GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Smarty 2.6.26 (June 18th, 2009), we should update to Smarty 3.x (current...
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
smarty
/
libs
/
internals
/
core.is_trusted.php
diff --git
a/wwwroot/smarty/libs/internals/core.is_trusted.php
b/wwwroot/smarty/libs/internals/core.is_trusted.php
index f0bd2fb8c96f945e9e0d9015749e07a6e9bf84b4..429973158d6cb75b3a6126f471aac3218fb6dc56 100644
(file)
--- 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
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;
}
$_smarty_trusted = true;
break;
}
This page took
0.242132 seconds
and
4
git commands to generate.