mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- bugfix add addition check for OS type on normalization of file path https://github.com/smarty-php/smarty/issues/134
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
20.12.2015
|
20.12.2015
|
||||||
- bugfix failure when the default resource type was set to 'extendsall' https://github.com/smarty-php/smarty/issues/123
|
- bugfix failure when the default resource type was set to 'extendsall' https://github.com/smarty-php/smarty/issues/123
|
||||||
- update compilation of Smarty special variables
|
- update compilation of Smarty special variables
|
||||||
|
- bugfix add addition check for OS type on normalizaition of file path https://github.com/smarty-php/smarty/issues/134
|
||||||
|
|
||||||
19.12.2015
|
19.12.2015
|
||||||
- bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138
|
- bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138
|
||||||
|
@@ -118,7 +118,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.29-dev/15';
|
const SMARTY_VERSION = '3.1.29-dev/16';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
@@ -1178,7 +1178,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
$path = str_replace($nds, DS, $path);
|
$path = str_replace($nds, DS, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($realpath === true && $path[0] !== '/' && $path[1] !== ':') {
|
if ($realpath === true && (($path[0] !== '/' && DS == '/') || ($path[1] !== ':' && DS != '/'))) {
|
||||||
$path = getcwd() . DS . $path;
|
$path = getcwd() . DS . $path;
|
||||||
}
|
}
|
||||||
while ((strpos($path, '.' . DS) !== false) || (strpos($path, DS . DS) !== false)) {
|
while ((strpos($path, '.' . DS) !== false) || (strpos($path, DS . DS) !== false)) {
|
||||||
|
Reference in New Issue
Block a user