From 83344b9e7d5bdde05956a0a5c0b6578e19974066 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Sat, 29 Aug 2009 12:50:20 -0700 Subject: Bugfix: Don't forget to copy the _is_purified_html flag when cloning a SafeString. --- modules/gallery/libraries/SafeString.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/gallery/libraries/SafeString.php b/modules/gallery/libraries/SafeString.php index 9a269ed4..9614a213 100644 --- a/modules/gallery/libraries/SafeString.php +++ b/modules/gallery/libraries/SafeString.php @@ -32,6 +32,7 @@ class SafeString_Core { function __construct($string) { if ($string instanceof SafeString) { $this->_is_safe_html = $string->_is_safe_html; + $this->_is_purified_html = $string->_is_purified_html; $string = $string->unescaped(); } $this->_raw_string = (string) $string; -- cgit v1.2.3