mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-06 08:26:19 +02:00
- bugfix Do not remove '//' from file path at normalization (Issue 142)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user