Bugfix: Don't forget to copy the _is_purified_html flag when cloning a SafeString.

This commit is contained in:
Andy Staudacher
2009-08-29 12:50:20 -07:00
parent c01ac42c46
commit 83344b9e7d
+1
View File
@@ -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;