mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fix handling of trailing-slashes in open_basedir in
smarty_core_create_dir_structure()
This commit is contained in:
3
NEWS
3
NEWS
@@ -1,3 +1,6 @@
|
||||
- fix handling of trailing-slashes in open_basedir in
|
||||
smarty_core_create_dir_structure() (packman, messju)
|
||||
|
||||
Version 2.6.0-RC2 (Oct 8, 2003)
|
||||
-------------------------------
|
||||
|
||||
|
@@ -56,7 +56,7 @@ function smarty_core_create_dir_structure($params, &$smarty)
|
||||
// do not attempt to test or make directories outside of open_basedir
|
||||
$_make_new_dir = false;
|
||||
foreach ($_open_basedirs as $_open_basedir) {
|
||||
if (substr($_new_dir . '/', 0, strlen($_open_basedir)) == $_open_basedir) {
|
||||
if (substr($_new_dir, 0, strlen($_open_basedir)) == $_open_basedir) {
|
||||
$_make_new_dir = true;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user