Per mailing list discussion, dom extension needs to be marked as required for Horde_Util
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Nov 2010 19:10:00 +0000 (13:10 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Nov 2010 21:47:24 +0000 (15:47 -0600)
framework/Text_Filter/lib/Horde/Text/Filter/Xss.php
framework/Text_Filter/package.xml
framework/Util/package.xml

index 08d2748..101292c 100644 (file)
@@ -96,14 +96,11 @@ class Horde_Text_Filter_Xss extends Horde_Text_Filter_Base
      *
      * @return string|Horde_Domhtml  The modified text or a Domhtml object if
      *                               the 'return_dom' parameter is set.
+     * @throws Exception
      */
     public function postProcess($text)
     {
-        try {
-            $dom = new Horde_Domhtml($text, $this->_params['charset']);
-        } catch (Exception $e) {
-            return $text;
-        }
+        $dom = new Horde_Domhtml($text, $this->_params['charset']);
 
         $this->_node($dom->dom, $dom->dom);
 
index ac85d3d..fb4eb75 100644 (file)
     <name>Text_Flowed</name>
     <channel>pear.horde.org</channel>
    </package>
-   <extension>
-    <name>dom</name>
-   </extension>
    <package>
     <name>Translation</name>
     <channel>pear.horde.org</channel>
index 61a5aaf..b062ecd 100644 (file)
@@ -79,6 +79,9 @@
     <name>Url</name>
     <channel>pear.horde.org</channel>
    </package>
+   <extension>
+    <name>dom</name>
+   </extension>
   </required>
   <optional>
    <package>
@@ -86,9 +89,6 @@
     <channel>pear.horde.org</channel>
    </package>
    <extension>
-    <name>dom</name>
-   </extension>
-   <extension>
     <name>iconv</name>
    </extension>
    <extension>