<?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>phishing warning</title> 
  <pubDate>Fri, 10 Apr 2026 14:48:35 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8094</link> 
  <atom:link rel="self" type="application/rss+xml" title="phishing warning" href="https://bugs.horde.org/ticket/8094/rss" /> 
  <description>phishing warning</description> 
 
   
   
  <item> 
   <title>Hello,



Our communication departement email are seen with </title> 
   <description>Hello,



Our communication departement email are seen with phishing warning. So I added some traces in ./lib/Horde/MIME/Viewer/html.php around line 117



                        preg_match(&#039;/\.?([^\.\/]+\.[^\.\/]+)[\/?]/&#039;, $link, $host1);

                        preg_match(&#039;/\.?([^\.\/]+\.[^\.\/ ]+)([\/ ].*)?$/&#039;, $target, $host2);

                        if (!(count($host1) &amp;&amp; count($host2)) ||

                            strcasecmp($host1[1], $host2[1]) !== 0) {

Horde::logMessage(&quot;tracedom2 l:$link t:$target &quot;.$host1[1].&quot; &quot;.$host2[1], __FILE__, __LINE__, PEAR_LOG_ERR);

                            $data = preg_replace(&#039;/href\s*=\s*[&quot;\&#039;]?\s*(?:http|https|ftp):\/\/&#039; . preg_quote($m[1][$i], &#039;/&#039;) . &#039;[&quot;\&#039;]?[^&gt;]*&gt;\s*(?:(?:http|https|ftp):\/\/)?&#039; . preg_quote($m[2][$i], &#039;/&#039;) . &#039;&lt;\/a/is&#039;, &#039;class=&quot;mimeStatusWarning&quot; $0&#039;, $data);

                            $phish_warn = true;

                        }



it produces that:

 tracedom2 l:www.univmed.fr/communication/?id=45418&amp;amp;file=seminaires_mars_09.doc t:www.univmed.fr/communication/^M ?id=45418&amp;amp;file=seminaires_mars_09.doc univmed.fr ^M ?id=45418&amp;amp;file=seminaires_mars_09.doc [pid 30835 on line 120 of &quot;/var/www/perso/horde-webmail-1.2.2/lib/Horde/MIME/Viewer/html.php&quot;]



which means:

link and target are equal (may be should we test for equality first, could be faster than regexp..) and after there is a confusion for the value of host2. Debugging the regular expression is not easy. I have no patch to put. Prefer leave Mickael have a look..



I&#039;m quite sure that /?id= is confusing the regexp



Dom





</description> 
   <pubDate>Tue, 17 Mar 2009 15:22:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8094#t53149</link> 
  </item> 
   
  <item> 
   <title>&gt; Hello,

&gt;

&gt; Our communication departement email are seen </title> 
   <description>&gt; Hello,

&gt;

&gt; Our communication departement email are seen with phishing warning. 

&gt; So I added some traces in ./lib/Horde/MIME/Viewer/html.php around 

&gt; line 117

&gt;

&gt;                         preg_match(&#039;/\.?([^\.\/]+\.[^\.\/]+)[\/?]/&#039;, 

&gt; $link, $host1);

&gt;                         preg_match(&#039;/\.?([^\.\/]+\.[^\.\/ ]+)([\/ 

&gt; ].*)?$/&#039;, $target, $host2);

&gt;                         if (!(count($host1) &amp;&amp; count($host2)) ||

&gt;                             strcasecmp($host1[1], $host2[1]) !== 0) {

&gt; Horde::logMessage(&quot;tracedom2 l:$link t:$target &quot;.$host1[1].&quot; 

&gt; &quot;.$host2[1], __FILE__, __LINE__, PEAR_LOG_ERR);

&gt;                             $data = 

&gt; preg_replace(&#039;/href\s*=\s*[&quot;\&#039;]?\s*(?:http|https|ftp):\/\/&#039; . 

&gt; preg_quote($m[1][$i], &#039;/&#039;) . 

&gt; &#039;[&quot;\&#039;]?[^&gt;]*&gt;\s*(?:(?:http|https|ftp):\/\/)?&#039; . preg_quote($m[2][$i], 

&gt; &#039;/&#039;) . &#039;&lt;\/a/is&#039;, &#039;class=&quot;mimeStatusWarning&quot; $0&#039;, $data);

&gt;                             $phish_warn = true;

&gt;                         }

&gt;

&gt; it produces that:

&gt;  tracedom2 

&gt; l:www.univmed.fr/communication/?id=45418&amp;amp;file=seminaires_mars_09.doc 

&gt; t:www.univmed.fr/communication/^M 

&gt; ?id=45418&amp;amp;file=seminaires_mars_09.doc univmed.fr ^M 

&gt; ?id=45418&amp;amp;file=seminaires_mars_09.doc [pid 30835 on line 120 of 

&gt; &quot;/var/www/perso/horde-webmail-1.2.2/lib/Horde/MIME/Viewer/html.php&quot;]

&gt;

&gt; which means:

&gt; link and target are equal (may be should we test for equality first, 

&gt; could be faster than regexp..) and after there is a confusion for the 

&gt; value of host2. Debugging the regular expression is not easy. I have 

&gt; no patch to put. Prefer leave Mickael have a look..

&gt;

&gt; I&#039;m quite sure that /?id= is confusing the regexp

&gt;

&gt; Dom

&gt;

&gt;

&gt;



I&#039;ve added the mail in attachment

</description> 
   <pubDate>Tue, 17 Mar 2009 15:44:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8094#t53150</link> 
  </item> 
   
  <item> 
   <title>In fact, the url is over two lines:  Don&#039;t know how to patch</title> 
   <description>In fact, the url is over two lines:  Don&#039;t know how to patch it, and even it that make sense. Firefox is interpreting as a 



. S&amp;#65533;minaires du mois de mars de l&#039;UMR 891 INSERM - Centre de Recherche 

en Canc&amp;#65533;rologie : www.univmed.fr/communication/

?id=45418&amp;file=SEMINAIRES_MARS_09.doc 

&lt;http://www.univmed.fr/communication/?id=45418&amp;file=SEMINAIRES_MARS_09.doc&gt;



What has been rendered to firefox is:



      &lt;td bgcolor=&quot;#ffffff&quot; height=&quot;50&quot;&gt;

      &lt;div align=&quot;justify&quot;&gt;&lt;span class=&quot;uni1&quot;&gt;&amp;#8226;&lt;/span&gt; &lt;span

 class=&quot;uni2&quot;&gt;S&amp;eacute;minaires &lt;/span&gt;&lt;span class=&quot;uni1&quot;&gt;du mois de mars de

l&#039;UMR 891 INSERM - Centre de Recherche en Canc&amp;eacute;rologie : &lt;a target=&quot;_blank&quot; 

 class=&quot;mimeStatusWarning&quot; href=&quot;http://www.univmed.fr/communication/?id=45418&amp;amp;file=SEMINAIRES_MARS_09.doc&quot;&gt;www.univmed.fr/communication/&lt;br&gt;



?id=45418&amp;amp;file=SEMINAIRES_MARS_09.doc&lt;/a&gt;&lt;/span&gt;&lt;br&gt;

      &lt;/div&gt;

      &lt;/td&gt;

    &lt;/tr&gt;









&gt;&gt; Hello,

&gt;&gt;

&gt;&gt; Our communication departement email are seen with phishing warning.

&gt;&gt; So I added some traces in ./lib/Horde/MIME/Viewer/html.php around

&gt;&gt; line 117

&gt;&gt;

&gt;&gt;                         preg_match(&#039;/\.?([^\.\/]+\.[^\.\/]+)[\/?]/&#039;,

&gt;&gt; $link, $host1);

&gt;&gt;                         preg_match(&#039;/\.?([^\.\/]+\.[^\.\/ ]+)([\/

&gt;&gt; ].*)?$/&#039;, $target, $host2);

&gt;&gt;                         if (!(count($host1) &amp;&amp; count($host2)) ||

&gt;&gt;                             strcasecmp($host1[1], $host2[1]) !== 0) {

&gt;&gt; Horde::logMessage(&quot;tracedom2 l:$link t:$target &quot;.$host1[1].&quot;

&gt;&gt; &quot;.$host2[1], __FILE__, __LINE__, PEAR_LOG_ERR);

&gt;&gt;                             $data =

&gt;&gt; preg_replace(&#039;/href\s*=\s*[&quot;\&#039;]?\s*(?:http|https|ftp):\/\/&#039; .

&gt;&gt; preg_quote($m[1][$i], &#039;/&#039;) .

&gt;&gt; &#039;[&quot;\&#039;]?[^&gt;]*&gt;\s*(?:(?:http|https|ftp):\/\/)?&#039; . preg_quote($m[2][$i],

&gt;&gt; &#039;/&#039;) . &#039;&lt;\/a/is&#039;, &#039;class=&quot;mimeStatusWarning&quot; $0&#039;, $data);

&gt;&gt;                             $phish_warn = true;

&gt;&gt;                         }

&gt;&gt;

&gt;&gt; it produces that:

&gt;&gt;  tracedom2

&gt;&gt; l:www.univmed.fr/communication/?id=45418&amp;amp;file=seminaires_mars_09.doc

&gt;&gt; t:www.univmed.fr/communication/^M

&gt;&gt; ?id=45418&amp;amp;file=seminaires_mars_09.doc univmed.fr ^M

&gt;&gt; ?id=45418&amp;amp;file=seminaires_mars_09.doc [pid 30835 on line 120 of

&gt;&gt; &quot;/var/www/perso/horde-webmail-1.2.2/lib/Horde/MIME/Viewer/html.php&quot;]

&gt;&gt;

&gt;&gt; which means:

&gt;&gt; link and target are equal (may be should we test for equality first,

&gt;&gt; could be faster than regexp..) and after there is a confusion for the

&gt;&gt; value of host2. Debugging the regular expression is not easy. I have

&gt;&gt; no patch to put. Prefer leave Mickael have a look..

&gt;&gt;

&gt;&gt; I&#039;m quite sure that /?id= is confusing the regexp

&gt;&gt;

&gt;&gt; Dom

&gt;&gt;

&gt;&gt;

&gt;&gt;

&gt;

&gt; I&#039;ve added the mail in attachment

&gt;

</description> 
   <pubDate>Tue, 17 Mar 2009 16:11:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8094#t53151</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/MIME/MIME/Viewer/Attic/html.php?rt=horde&amp;r1=1.14.4.32&amp;r2=1.14.4.33&amp;ty=u</description> 
   <pubDate>Wed, 18 Mar 2009 22:40:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8094#t53176</link> 
  </item> 
   
  <item> 
   <title>Fixed.</title> 
   <description>Fixed.</description> 
   <pubDate>Wed, 18 Mar 2009 22:49:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8094#t53177</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
