- 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
+1 -1
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);