- bugfix Do not remove '//' from file path at normalization (Issue 142)

This commit is contained in:
Uwe.Tews@googlemail.com
2013-07-12 00:16:43 +00:00
parent a74d8d5416
commit 917f92d38b
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
===== trunk =====
12.7.2013
- bugfix Do not remove '//' from file path at normalization (Issue 142)
2.7.2013
- bugfix trimwhitespace would replace captured items in wrong order (forum topic 24387)
===== Smarty-3.1.14 =====
27.06.2013
- bugfix removed PHP 5.5 deprecated preg_replace /e option in modifier capitalize (forum topic 24389)

View File

@@ -162,7 +162,7 @@ abstract class Smarty_Resource {
$offset = 0;
// resolve simples
$_path = preg_replace('#(/\./(\./)*)|/{2,}#', '/', $_path);
$_path = preg_replace('#/\./(\./)*#', '/', $_path);
// resolve parents
while (true) {
$_parent = strpos($_path, '/../', $offset);