<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>View HTML attach do not render anything</title> 
  <pubDate>Fri, 10 Apr 2026 07:55:28 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8581</link> 
  <atom:link rel="self" type="application/rss+xml" title="View HTML attach do not render anything" href="https://bugs.horde.org/ticket/8581/rss" /> 
  <description>View HTML attach do not render anything</description> 
 
   
   
  <item> 
   <title>The &quot;view.php?actionID=view_attach&quot; link is not render anyth</title> 
   <description>The &quot;view.php?actionID=view_attach&quot; link is not render anything when the attach is a HTML file. 



The problem might be on the regex that remove &quot;attribute=&quot;javascript:foo()&quot;. When this is preg is commented all work fine.</description> 
   <pubDate>Wed, 16 Sep 2009 16:41:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55794</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t see this.  And I don&#039;t know what regex you are refer</title> 
   <description>I don&#039;t see this.  And I don&#039;t know what regex you are referring to.</description> 
   <pubDate>Wed, 16 Sep 2009 16:51:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55798</link> 
  </item> 
   
  <item> 
   <title>&gt; I don&#039;t see this.  And I don&#039;t know what regex you are ref</title> 
   <description>&gt; I don&#039;t see this.  And I don&#039;t know what regex you are referring to.



Sorry about that. Here it is:Horde/Text/Filter/Xss.php line:95

</description> 
   <pubDate>Wed, 16 Sep 2009 17:28:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55799</link> 
  </item> 
   
  <item> 
   <title>The regex in case is a complex version of this one: &#039;/(=|url</title> 
   <description>The regex in case is a complex version of this one: &#039;/(=|url\()(&quot;?)[^&gt;]*script:/&#039;



With this simplified version I tried 3 different tests and the results are quite inconsistent.



1- onclick=&#039;javascript:console.log(&quot;test&quot;);&#039; - Works fine.

2- style=&quot;background: url(&#039;javascript:test()&#039;);&quot; - Works fine.

3- Test 1 and 2 on the same element - Does not work.



NOTE: this bug occurs on previous versions of IMP too.</description> 
   <pubDate>Tue, 22 Sep 2009 14:10:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55883</link> 
  </item> 
   
  <item> 
   <title>Please provide a reproducible test case, such as something t</title> 
   <description>Please provide a reproducible test case, such as something that can easily be dropped into the tests/ directory of the Horde_Text_Filter package.  I don&#039;t understand what your example is supposed to show.  The preg in the previous comment is nowhere near the same as the preg contained in Xss.php.</description> 
   <pubDate>Wed, 23 Sep 2009 03:31:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55890</link> 
  </item> 
   
  <item> 
   <title>&gt; Please provide a reproducible test case, such as something</title> 
   <description>&gt; Please provide a reproducible test case, such as something that can 

&gt; easily be dropped into the tests/ directory of the Horde_Text_Filter 

&gt; package.

Here it is.</description> 
   <pubDate>Wed, 23 Sep 2009 09:51:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55899</link> 
  </item> 
   
  <item> 
   <title>The reason is that we match [^&gt;] to find the end of the bad </title> 
   <description>The reason is that we match [^&gt;] to find the end of the bad string, because this is the only safe match (end of tag). We can&#039;t match [^&#039;&quot;] because the offending attribute might not be closed with a quote.</description> 
   <pubDate>Fri, 25 Sep 2009 16:24:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8581#t55959</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
