diff options
author | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 12:50:20 -0700 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 12:50:20 -0700 |
commit | 83344b9e7d5bdde05956a0a5c0b6578e19974066 (patch) | |
tree | 4ec27ddd2fe7739b09e82dd1119425fc0540e10f | |
parent | c01ac42c4604b3b129e8089e0dc683ebd418b380 (diff) |
Bugfix: Don't forget to copy the _is_purified_html flag when cloning a SafeString.
-rw-r--r-- | modules/gallery/libraries/SafeString.php | 1 |
1 files changed, 1 insertions, 0 deletions
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; |