mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix Do not remove '//' from file path at normalization (Issue 142)
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
12.7.2013
|
||||||
|
- bugfix Do not remove '//' from file path at normalization (Issue 142)
|
||||||
|
|
||||||
2.7.2013
|
2.7.2013
|
||||||
- bugfix trimwhitespace would replace captured items in wrong order (forum topic 24387)
|
- bugfix trimwhitespace would replace captured items in wrong order (forum topic 24387)
|
||||||
|
|
||||||
===== Smarty-3.1.14 =====
|
===== Smarty-3.1.14 =====
|
||||||
27.06.2013
|
27.06.2013
|
||||||
- bugfix removed PHP 5.5 deprecated preg_replace /e option in modifier capitalize (forum topic 24389)
|
- bugfix removed PHP 5.5 deprecated preg_replace /e option in modifier capitalize (forum topic 24389)
|
||||||
|
@@ -162,7 +162,7 @@ abstract class Smarty_Resource {
|
|||||||
$offset = 0;
|
$offset = 0;
|
||||||
|
|
||||||
// resolve simples
|
// resolve simples
|
||||||
$_path = preg_replace('#(/\./(\./)*)|/{2,}#', '/', $_path);
|
$_path = preg_replace('#/\./(\./)*#', '/', $_path);
|
||||||
// resolve parents
|
// resolve parents
|
||||||
while (true) {
|
while (true) {
|
||||||
$_parent = strpos($_path, '/../', $offset);
|
$_parent = strpos($_path, '/../', $offset);
|
||||||
|
Reference in New Issue
Block a user