diff options
author | thomascube <thomas@roundcube.net> | 2011-12-09 21:13:54 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-12-09 21:13:54 +0000 |
commit | 2b017e7f79be26563ab767bb9e97fee5d88a01f4 (patch) | |
tree | c49206a19eb06f4af4b0967a4930dade83730544 /program/lib | |
parent | 231fae7ad45cf2fb5bdbe62f78e043171af1e18e (diff) |
Allow clean background:url(...) styles in safe mode. This will make Roundcube pass the Email Standards Acid Test
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/washtml.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php index 9c8625f30..8bbc136e1 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -243,7 +243,7 @@ class washtml case XML_ELEMENT_NODE: //Check element $tagName = strtolower($node->tagName); if ($callback = $this->handlers[$tagName]) { - $dump .= call_user_func($callback, $tagName, $this->wash_attribs($node), $this->dumpHtml($node)); + $dump .= call_user_func($callback, $tagName, $this->wash_attribs($node), $this->dumpHtml($node), $this); } else if (isset($this->_html_elements[$tagName])) { $content = $this->dumpHtml($node); @@ -301,6 +301,14 @@ class washtml return $this->dumpHtml($node); } + /** + * Getter for config parameters + */ + public function get_config($prop) + { + return $this->config[$prop]; + } + } ?> |