From 31d94d05d3e934e2b9d0ebcadfd39b0acc09f868 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sun, 21 Jun 2015 12:52:49 +0200 Subject: [PATCH] - optimization of template/config file normalization --- libs/sysplugins/smarty_internal_resource_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_resource_file.php b/libs/sysplugins/smarty_internal_resource_file.php index 3181a473..a63b8562 100644 --- a/libs/sysplugins/smarty_internal_resource_file.php +++ b/libs/sysplugins/smarty_internal_resource_file.php @@ -36,7 +36,7 @@ class Smarty_Internal_Resource_File extends Smarty_Resource protected function buildFilepath(Smarty_Template_Source $source, Smarty_Internal_Template $_template = null) { $file = $source->name; - $this->invDS = (DS == '/') ? '\\' : '/'; + $this->invDS = (DS == '/') ? '\\\\' : '\\/'; preg_match('#(^(?P[\\\/]|[a-zA-Z]:[\\\/])|(\[(?P[^\]]+)\])|(?P\.[\\\/]))|((?P\.[\\\/])|(?P[' . $this->invDS . ']))#', $file, $fileMatch); // save basename if (!empty($fileMatch['absolute'])) {