mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- update $smarty->_realpath for relative path not starting with './'
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
===== 3.1.28-dev===== (xx.xx.2015)
|
||||
27.06.2015
|
||||
- bugfix resolve naming conflict between custom Smarty delimiter '<%' and PHP ASP tags https://github.com/smarty-php/smarty/issues/64
|
||||
|
||||
- update $smarty->_realpath for relative path not starting with './'
|
||||
|
||||
19.06.2015
|
||||
- improvement allow closures as callback at $smarty->registerFilter() https://github.com/smarty-php/smarty/issues/59
|
||||
|
||||
|
@@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
/**
|
||||
* smarty version
|
||||
*/
|
||||
const SMARTY_VERSION = '3.1.28-dev/7';
|
||||
const SMARTY_VERSION = '3.1.28-dev/8';
|
||||
|
||||
/**
|
||||
* define variable scopes
|
||||
@@ -1481,7 +1481,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
*/
|
||||
public function _realpath($path)
|
||||
{
|
||||
if ($path[0] == '.') {
|
||||
if ($path[0] !== '/' && $path[1] !== ':') {
|
||||
$path = getcwd() . DS . $path;
|
||||
}
|
||||
//return realpath($path) . DS;
|
||||
|
Reference in New Issue
Block a user