From a1e7462e8f1d2e38c88bb9da2e34d5479850b08d Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 3 Dec 2008 09:29:44 +0000 Subject: [PATCH] upgrade bundled smarty --- bundled-libs/Smarty/NEWS | 19 +++++++ bundled-libs/Smarty/README | 3 +- .../Smarty/libs/Config_File.class.php | 10 ++-- bundled-libs/Smarty/libs/Smarty.class.php | 10 ++-- .../Smarty/libs/Smarty_Compiler.class.php | 50 ++++++++++++++----- .../core.process_compiled_include.php | 2 +- .../libs/internals/core.write_cache_file.php | 2 +- .../libs/plugins/modifier.regex_replace.php | 15 +++++- .../plugins/outputfilter.trimwhitespace.php | 14 +++--- 9 files changed, 93 insertions(+), 32 deletions(-) diff --git a/bundled-libs/Smarty/NEWS b/bundled-libs/Smarty/NEWS index fa550ff1..19d9082b 100644 --- a/bundled-libs/Smarty/NEWS +++ b/bundled-libs/Smarty/NEWS @@ -1,3 +1,22 @@ +Version 2.6.21 (Dec 2nd, 2008) +------------------------------ + +- fix function injection security hole closed (U.Tews) +- fix pass expiration time at cache_handler_fuc call in core.write_cache_file.php (U.Tews) +- Update of compiler.class.php to allow method chaining for PHP4 and PHP5 (U.Tews) + +Version 2.6.20 (Feb 15th, 2008) +------------------------------- + +- fix cache tag bug when multiple cache tags on a page (mankyd, + mohrt) +- fix /e tag checking when using arrays with regex_replace + (mohrt) +- fix that function results can be used with condition like "is even" in + {if} tags (U.Tews) +- fix handling of non-empty
-tags and empty !is", $source, $match);
+    preg_match_all("!]*?>.*?!is", $source, $match);
     $_textarea_blocks = $match[0];
-    $source = preg_replace("!]+>.*?!is",
+    $source = preg_replace("!]*?>.*?!is",
                            '@@@SMARTY:TRIM:TEXTAREA@@@', $source);
 
     // remove all leading spaces, tabs and carriage returns NOT