<?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>Incomplete parsing of  Href link</title> 
  <pubDate>Fri, 10 Apr 2026 16:47:27 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8062</link> 
  <atom:link rel="self" type="application/rss+xml" title="Incomplete parsing of  Href link" href="https://bugs.horde.org/ticket/8062/rss" /> 
  <description>Incomplete parsing of  Href link</description> 
 
   
   
  <item> 
   <title>Hello,



Using picasaweb from google, the sent mail appears</title> 
   <description>Hello,



Using picasaweb from google, the sent mail appears OK, but the link is not fully parsed. It stops just at target=, ignoring the rest of the link.



Dom





--00163630f4a1e3f3350464a2fe99

Content-Type: multipart/alternative; boundary=00163630f4a1e3f3320464a2fe98



--00163630f4a1e3f3320464a2fe98

Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Content-Transfer-Encoding: base64



Q2VzIHBob3RvcyBvbnQg6XTpIGVudm956WVzIGF2ZWMgUGljYXNhLCB1biBsb2dpY2llbCBkZSBH

b29nbGUuDQpQb3VyIGwnZXNzYXllciwgcmVuZGV6LXZvdXMgc3VyIDogaHR0cDovL3BpY2FzYS5n

b29nbGUuY29tLy4NCg0KaHR0cDovL3BpY2FzYXdlYi5nb29nbGUuZnIvbGgvc3JlZGlyP3VuYW1l

PWVyaWMubGFsb3QmdGFyZ2V0PUFMQlVNJmlkPTUzMTA5NDAxNTg5MzI3ODUwMjUmYXV0aGtleT1H

djFzUmdDUGlLdjdqY3JyeU0tQUUmYXV0aGtleT1HdjFzUmdDUGlLdjdqY3JyeU0tQUUmaW52aXRl

PUNQM0JyY1lNJmZlYXQ9ZW1haWwNCg==

--00163630f4a1e3f3320464a2fe98

Content-Type: text/html; charset=windows-1252

Content-Transfer-Encoding: quoted-printable



&lt;body style=3D&quot;font-family: Arial, Helvetica, sans-serif; background-color:=

white&quot;&gt;

&lt;!--a75c305b1c0a6022--&gt;&lt;table border=3D0 cellpadding=3D0 cellspacing=3D0 width=3D&quot;600px&quot;&gt;

&lt;tr&gt;

&lt;td bgcolor=3D&quot;#E1ECFF&quot; width=3D&quot;10px&quot;&gt;&lt;/td&gt;

&lt;td width=3D&quot;*&quot; style=3D&quot;border: 1px solid #ccc; padding: .6em .8em;&quot;&gt;

&lt;div style=3D&quot;padding-bottom: .6em; font-weight: bold; font-size: 12pt; col=

or: #333;&quot;&gt;Vous =EAtes invit=E9 =E0 voir l&#039;album photo de Eric intitul=E9 :=

 &lt;a href=3D&#039;http://picasaweb.google.fr/lh/sredir?uname=3Deric.xxxxx&amp;target=

=3DALBUM&amp;id=3D5310940158932785025&amp;authkey=3DGv1sRgCPiKv7jcrryM-AE&amp;authkey=

=3DGv1sRgCPiKv7jcrryM-AE&amp;invite=3DCP3BrcYM&amp;feat=3Demail&#039;&gt;03-WaitakereRando&lt;=

/a&gt;&lt;/div&gt;

&lt;div style=3D&quot;background-color: #F5F5F5; border: 1px solid #CCC; padding: 0=

.8em;&quot;&gt;

&lt;!--a75c305b1c0a6022--&gt;&lt;table cellspacing=3D0 cellpadding=3D0&gt;

&lt;tr&gt;

&lt;td valign=3D&quot;top&quot;&gt;

&lt;div style=3D&quot;border: 1px solid #ccc; padding: 7px; background-color: #FFF;=

&quot;&gt;

</description> 
   <pubDate>Mon, 09 Mar 2009 07:33:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t52959</link> 
  </item> 
   
  <item> 
   <title>Huh? Can you provide a full email example and use a bit more</title> 
   <description>Huh? Can you provide a full email example and use a bit more words?</description> 
   <pubDate>Mon, 09 Mar 2009 14:26:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t52969</link> 
  </item> 
   
  <item> 
   <title>&gt; Huh? Can you provide a full email example and use a bit mo</title> 
   <description>&gt; Huh? Can you provide a full email example and use a bit more words?



Yes, here it is. You&#039;ll see that the link is broken. I changed some identity in the elm attached file.</description> 
   <pubDate>Tue, 10 Mar 2009 09:56:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t53002</link> 
  </item> 
   
  <item> 
   <title>Hmmm... somehow my comment(s) got lost (probably due to the </title> 
   <description>Hmmm... somehow my comment(s) got lost (probably due to the out of disk space issues on bugs@).  This has been fixed in IMP 4.3.4 and git.  This was the fix:



Author:     Michael M Slusarz &lt;slusarz@curecanti.org&gt;

AuthorDate: Tue Mar 10 16:30:47 2009 -0600

Commit:     Michael M Slusarz &lt;slusarz@curecanti.org&gt;

CommitDate: Tue Mar 10 16:30:47 2009 -0600



    Bug #8062: Fix link parsing



    We need to make sure there is a space before target/href or else params

    contained in a URL can confuse the regexp if named target or href.

---

 imp/lib/Mime/Viewer/Html.php |    8 ++++----

 1 files changed, 4 insertions(+), 4 deletions(-)



diff --git a/imp/lib/Mime/Viewer/Html.php b/imp/lib/Mime/Viewer/Html.php

index 69000c6..bb0801d 100644

--- a/imp/lib/Mime/Viewer/Html.php

+++ b/imp/lib/Mime/Viewer/Html.php

@@ -170,11 +170,11 @@ class IMP_Horde_Mime_Viewer_Html extends Horde_Mime_Viewe~

          * mailto: links, links that have an &quot;#xyz&quot; anchor and ignore

          * all links that already have a target. */

         $data = preg_replace(

-            array(&#039;/&lt;a\s([^&gt;]*\s*href=[&quot;\&#039;]?(#|mailto:))/i&#039;,

-                  &#039;/&lt;a\s([^&gt;]*)\s*target=[&quot;\&#039;]?[^&gt;&quot;\&#039;\s]*[&quot;\&#039;]?/i&#039;,

+            array(&#039;/&lt;a\s([^&gt;]*\s+href=[&quot;\&#039;]?(#|mailto:))/i&#039;,

+                  &#039;/&lt;a\s([^&gt;]*)\s+target=[&quot;\&#039;]?[^&gt;&quot;\&#039;\s]*[&quot;\&#039;]?/i&#039;,

                   &#039;/&lt;a\s/i&#039;,

-                  &#039;/&lt;area\s([^&gt;]*\s*href=[&quot;\&#039;]?(#|mailto:))/i&#039;,

-                  &#039;/&lt;area\s([^&gt;]*)\s*target=[&quot;\&#039;]?[^&gt;&quot;\&#039;\s]*[&quot;\&#039;]?/i&#039;,

+                  &#039;/&lt;area\s([^&gt;]*\s+href=[&quot;\&#039;]?(#|mailto:))/i&#039;,

+                  &#039;/&lt;area\s([^&gt;]*)\s+target=[&quot;\&#039;]?[^&gt;&quot;\&#039;\s]*[&quot;\&#039;]?/i&#039;,

                   &#039;/&lt;area\s/i&#039;,

                   &quot;/\x01/&quot;,

                   &quot;/\x02/&quot;),



</description> 
   <pubDate>Thu, 12 Mar 2009 19:08:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t53047</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/imp/lib/MIME/Viewer/html.php?rt=horde&amp;r1=1.75.2.38&amp;r2=1.75.2.39&amp;ty=u</description> 
   <pubDate>Thu, 12 Mar 2009 19:10:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t53048</link> 
  </item> 
   
  <item> 
   <title>&gt; Changes have been made in CVS for this ticket:

&gt;

&gt; http:</title> 
   <description>&gt; Changes have been made in CVS for this ticket:

&gt;

&gt; http://cvs.horde.org/diff.php/imp/lib/MIME/Viewer/html.php?rt=horde&amp;r1=1.75.2.38&amp;r2=1.75.2.39&amp;ty=u



Thanks Mickael for the patch, but I can&#039;t apply it



Is there a version mismatch?



If I look at the diff:



- * $Horde: imp/lib/MIME/Viewer/html.php,v 1.75.2.37 2008/09/24 17:21:42 jan Exp $

+ * $Horde: imp/lib/MIME/Viewer/html.php,v 1.75.2.38 2009/01/06 15:24:09 jan Exp $



I&#039;m already at 1.75.2.38 and the patch is to go to 1.75.2.39

Is there something broken?



So, I can&#039;t apply the patch!



Dom</description> 
   <pubDate>Fri, 13 Mar 2009 07:54:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t53057</link> 
  </item> 
   
  <item> 
   <title>&gt; Is there a version mismatch?

&gt;

&gt; If I look at the diff:
</title> 
   <description>&gt; Is there a version mismatch?

&gt;

&gt; If I look at the diff:

&gt;

&gt; - * $Horde: imp/lib/MIME/Viewer/html.php,v 1.75.2.37 2008/09/24 

&gt; 17:21:42 jan Exp $

&gt; + * $Horde: imp/lib/MIME/Viewer/html.php,v 1.75.2.38 2009/01/06 

&gt; 15:24:09 jan Exp $

&gt;

&gt; I&#039;m already at 1.75.2.38 and the patch is to go to 1.75.2.39

&gt; Is there something broken?



No, nothing is broken.  CVS ids in patches are always one less than the current version (IIRC, the diff is taken before the id is updated to the current version).</description> 
   <pubDate>Fri, 13 Mar 2009 16:28:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t53074</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8062: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8062: Fix link parsing
We need to make sure there is a space before target/href or else params
contained in a URL can confuse the regexp if named target or href.

http://git.horde.org/diff.php/imp/lib/Mime/Viewer/Html.php?rt=horde-git&amp;r1=7dc3f0b944c0bebc4d64f09f749ebf6929f998fc&amp;r2=07d1333648750a0173727939655e4543727c37c3</description> 
   <pubDate>Wed, 13 Jan 2010 00:00:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t57532</link> 
  </item> 
   
  <item> 
   <title>This change breaks parsing all links that don&#039;t have at leas</title> 
   <description>This change breaks parsing all links that don&#039;t have at least two spaces inside the &lt;a&gt; and &lt;area&gt; tags before the href or target attributes. See the failing PEAR unit tests.</description> 
   <pubDate>Mon, 07 Jun 2010 09:17:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t59038</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8062: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8062: Fix parsing links to appear in new window
Make tests re: link to new window work again (this test now requires a
working Horde installation, but that is fine for me).

http://git.horde.org/diff.php/imp/lib/Mime/Viewer/Html.php?rt=horde-git&amp;r1=3293e133b0e77c8615a6f867653f02d980f4bd77&amp;r2=178f8f7494f18758603b27872845a2642a5c2296
http://git.horde.org/diff.php/imp/lib/tests/mime_viewer_html.phpt?rt=horde-git&amp;r1=125d67abb65a72398662ad99c163a0b9f7496ff3&amp;r2=178f8f7494f18758603b27872845a2642a5c2296</description> 
   <pubDate>Wed, 30 Jun 2010 21:51:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t59282</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Bug: 8062
Me</title> 
   <description>Changes have been made in CVS for this ticket:

Bug: 8062
Merge from git: 178f8f7
http://cvs.horde.org/diff.php/imp/lib/MIME/Viewer/html.php?rt=horde&amp;r1=1.75.2.40&amp;r2=1.75.2.41&amp;ty=u</description> 
   <pubDate>Wed, 30 Jun 2010 21:55:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8062#t59283</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
