<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 237: HTML escaping not removed from URL</title><link>https://sourceforge.net/p/sipe/bugs/237/</link><description>Recent changes to 237: HTML escaping not removed from URL</description><atom:link href="https://sourceforge.net/p/sipe/bugs/237/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Mar 2014 20:11:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sipe/bugs/237/feed.rss" rel="self" type="application/rss+xml"/><item><title>#237 HTML escaping not removed from URL</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#b547</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;assigned_to&lt;/strong&gt;: Stefan Becker&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Becker</dc:creator><pubDate>Wed, 19 Mar 2014 20:11:39 -0000</pubDate><guid>https://sourceforge.net4145e0be23f00a051e1aa91c955c9c71edf1d908</guid></item><item><title>#237 HTML escaping not removed from URL</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#4cba</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;BTW: I noticed the following&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;when entering an URL by hand, Pidgin generates&lt;br /&gt;
&lt;code&gt;&amp;lt;A HREF="..."&amp;gt;...&amp;lt;/A&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;when copy &amp;amp; pasting or drag &amp;amp; dropping an URL, Pidgin generates&lt;br /&gt;
&lt;code&gt;&amp;lt;a href="..."&amp;gt;...&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I wonder if some brainiac did this on purpose and expects plugins to change their behaviour based on the case...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Becker</dc:creator><pubDate>Wed, 19 Mar 2014 20:09:24 -0000</pubDate><guid>https://sourceforge.net505089f590813faa6a52efd3666acf6be83aa2f5</guid></item><item><title>#237 HTML escaping not removed from URL</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#a1e2</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;: HTML markup not removed from URL --&amp;gt; HTML escaping not removed from URL&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Becker</dc:creator><pubDate>Wed, 19 Mar 2014 06:58:06 -0000</pubDate><guid>https://sourceforge.netb5844165851e69516f3e5ab0e5653c8bed03594d</guid></item><item><title>#237 HTML markup not removed from URL</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#a09e</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;: Outgoing messages with links contain bogus escaped ampersands --&amp;gt; HTML markup not removed from URL&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Becker</dc:creator><pubDate>Wed, 19 Mar 2014 06:55:36 -0000</pubDate><guid>https://sourceforge.net58fd3589d54896e372fa7b39a276689c57e6f21c</guid></item><item><title>#237 Outgoing messages with links contain bogus escaped ampersands</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#d2c6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Crap sourceforge totally parsed all of my HTML. My apologies. I created my account specifically for this bug and am unaccustomed to the bug tracker here. Let me correct those parts.&lt;/p&gt;
&lt;p&gt;"When handed something like "foo" to an"&lt;/p&gt;
&lt;p&gt;should be:&lt;/p&gt;
&lt;p&gt;"When handed something like "&amp;lt;a href="&amp;amp;amp;"&amp;gt;foo&amp;lt;/a&amp;gt;" to an"&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;"This directly relates to case 1. Pidgin should produce the following HTML:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;text2" rel="nofollow"&gt;http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;text2&lt;/a&gt;"&lt;/p&gt;
&lt;p&gt;should be:&lt;/p&gt;
&lt;p&gt;"This directly relates to case 1. Pidgin should produce the following HTML:&lt;/p&gt;
&lt;p&gt;&amp;lt;A HREF="http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;amp;text2"&amp;gt;http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;amp;text2&amp;lt;/A&amp;gt;"&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;"The '&amp;amp;' would be converted to only '&amp;amp;'."&lt;/p&gt;
&lt;p&gt;should be:&lt;/p&gt;
&lt;p&gt;"The '&amp;amp;amp;' would be converted to only '&amp;amp;'."&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Kreitzer</dc:creator><pubDate>Tue, 18 Mar 2014 23:24:40 -0000</pubDate><guid>https://sourceforge.netaf5f8834fa7b829a04a9432cabe0a2c36150c439</guid></item><item><title>#237 Outgoing messages with links contain bogus escaped ampersands</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#5288</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This is some interesting (even buggy) behavior from pidgin with regard to case 1 and 3, but ultimately it's not really significant to &lt;em&gt;this&lt;/em&gt; bug. Allow me to explain.&lt;/p&gt;
&lt;p&gt;HTML standards strongly recommend ampersands be escaped in HTML attributes, and XHTML, being XML, absolutely requires it. Since what is being discussed here is a function in SIPE specifically designed to strip HTML it's appropriate to narrow the scope to the task at hand.&lt;/p&gt;
&lt;p&gt;When handed something like "&lt;a href="../&amp;amp;"&gt;foo&lt;/a&gt;" to an HTML to text conversion that discards the anchor text and includes the href attribute, "&amp;amp;" should be the only output. This is true in all circumstances.&lt;/p&gt;
&lt;p&gt;So, lets break it down for each case.&lt;/p&gt;
&lt;p&gt;Case 1:&lt;/p&gt;
&lt;p&gt;Pidgin should escape the ampersand when converting the plain text URL to an HTML anchor. It doesn't. Bad on pidgin, and this should be considered a pidgin bug.&lt;/p&gt;
&lt;p&gt;Case 2:&lt;/p&gt;
&lt;p&gt;Pidgin is actually behaving correctly here. This is what we should expect.&lt;/p&gt;
&lt;p&gt;Case 3:&lt;/p&gt;
&lt;p&gt;This directly relates to case 1. Pidgin should produce the following HTML:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://does.not.exist.com/test?searchterm=text1&amp;amp;text2" rel="nofollow"&gt;http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;text2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Same bug in pidgin. The bad HTML pidgin spits out would be processed in a web browser in the same way. The '&amp;amp;' would be converted to only '&amp;amp;'.&lt;/p&gt;
&lt;p&gt;Unless SIPE intends to attempt to work around these pidgin bugs it should assume HTML received from Pidgin is always correct and well formed (at least the loose sense of well formed that HTML uses).&lt;/p&gt;
&lt;p&gt;If that assumption is made, encoded characters in the href attribute should be decoded by the html to text processing in SIPE with no exceptions.&lt;/p&gt;
&lt;p&gt;Another possibility would be to dispose of the href attribute and include only the anchor text. Since pidgin always correctly handles the anchor text this would side step the observed pidgin bugs. The down side is that the link would be lost in the case of a real user created link with custom text.&lt;/p&gt;
&lt;p&gt;Another would be to include both, maybe in the form of "anchor text (href attribute)". However, due to the above bugs and in general that would probably be confusing to users.&lt;/p&gt;
&lt;p&gt;Both of these are possible and simple to perform with the current design of sipe_parse_html. However, I must admit I'm partial to the original idea of only including the href attribute.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Michael&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Kreitzer</dc:creator><pubDate>Tue, 18 Mar 2014 23:18:01 -0000</pubDate><guid>https://sourceforge.netd3efc302e17bc8a777a35a54da7839d5afc2b3c0</guid></item><item><title>#237 Outgoing messages with links contain bogus escaped ampersands</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#3725</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;IMHO this is a bug in Pidgin.&lt;/p&gt;
&lt;p&gt;case 1: type in &lt;code&gt;http://does.not.exist.com/test?a=1&amp;amp;b=2&lt;/code&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;41&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;sipe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;sipe_core_im_send&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;A HREF=&amp;quot;http://does.not.exist.com/test?a=1&amp;amp;b=2&amp;quot;&amp;gt;http://does.not.exist.com/test?a=1&amp;amp;amp;b=2&amp;lt;/A&amp;gt;'&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;MESSAGE&lt;/span&gt; &lt;span class="nx"&gt;sip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;plain&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;UTF&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;msgr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;WAAtAE0ATQBTAC0ASQBNAC0ARgBvAHIAbQBhAHQAOgAgAEYATgA9AE0AUwAlADIAMABTAGEAbgBzACUAMgAwAFMAZQByAGkAZgA7ACAARQBGAD0AOwAgAEMATwA9ADAAOwAgAFAARgA9ADAAOwAgAFIATAA9ADAADQAKAA0ACgA&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;38&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;

&lt;span class="nx"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//does.not.exist.com/test?a=1&amp;amp;b=2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;case 2: copy and paste text &lt;code&gt;http://does.not.exist.com/test?a=1&amp;amp;b=2&lt;/code&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;59&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;sipe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;sipe_core_im_send&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;a href=&amp;quot;http://does.not.exist.com/test?a=1&amp;amp;amp;b=2&amp;quot;&amp;gt;http://does.not.exist.com/test?a=1&amp;amp;amp;b=2&amp;lt;/a&amp;gt;'&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;MESSAGE&lt;/span&gt; &lt;span class="nx"&gt;sip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;plain&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;UTF&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;msgr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;WAAtAE0ATQBTAC0ASQBNAC0ARgBvAHIAbQBhAHQAOgAgAEYATgA9AE0AUwAlADIAMABTAGEAbgBzACUAMgAwAFMAZQByAGkAZgA7ACAARQBGAD0AOwAgAEMATwA9ADAAOwAgAFAARgA9ADAAOwAgAFIATAA9ADAADQAKAA0ACgA&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;42&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;

&lt;span class="nx"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//does.not.exist.com/test?a=1&amp;amp;amp;b=2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;case 3: type in &lt;code&gt;http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;text2&lt;/code&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;37&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;55&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;sipe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;sipe_core_im_send&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&amp;lt;A HREF=&amp;quot;http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;text2&amp;quot;&amp;gt;http://does.not.exist.com/test?searchterm=text1&amp;amp;amp;amp;text2&amp;lt;/A&amp;gt;'&lt;/span&gt;
     &lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;MESSAGE&lt;/span&gt; &lt;span class="nx"&gt;sip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;plain&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;UTF&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;msgr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;WAAtAE0ATQBTAC0ASQBNAC0ARgBvAHIAbQBhAHQAOgAgAEYATgA9AE0AUwAlADIAMABTAGEAbgBzACUAMgAwAFMAZQByAGkAZgA7ACAARQBGAD0AOwAgAEMATwA9ADAAOwAgAFAARgA9ADAAOwAgAFIATAA9ADAADQAKAA0ACgA&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;57&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;

&lt;span class="nx"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//does.not.exist.com/test?searchterm=text1&amp;amp;amp;text2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Cases 2 &amp;amp; 3 are indistinguishable for SIPE, i.e. applying your patch will fix case 2, but then case 3 will be broken.&lt;/p&gt;
&lt;p&gt;I would file a bug against Pidgin. Why does it handle copy &amp;amp; pasted URL's differently from the same URL typed in by the user?&lt;/p&gt;
&lt;p&gt;Unless I hear a better argument, I'm going to close this bug as INVALID.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Becker</dc:creator><pubDate>Tue, 18 Mar 2014 20:49:14 -0000</pubDate><guid>https://sourceforge.net3a03ad2d9887d6ac32c3797e15b7bad23fcc99ff</guid></item><item><title>#237 Outgoing messages with links contain bogus escaped ampersands</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#0beb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The URL needs a traditionally escaped character in it. The most likely one to encounter would be an ampersand. Try this one:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=2058911" rel="nofollow"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=2058911&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Kreitzer</dc:creator><pubDate>Tue, 18 Mar 2014 19:35:40 -0000</pubDate><guid>https://sourceforge.netaaab401ac9d2c08d9a07bc537e6c5ccbd28037fb</guid></item><item><title>#237 Outgoing messages with links contain bogus escaped ampersands</title><link>https://sourceforge.net/p/sipe/bugs/237/?limit=25#721c</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;As to the why: the Microsoft clients don't like HTML.&lt;/p&gt;
&lt;p&gt;Based on the provided information I'm not able to reproduce the problem. I entered a URL in 3 different ways in the message window:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;typed in&lt;/li&gt;
&lt;li&gt;copy &amp;amp; pasted from another window&lt;/li&gt;
&lt;li&gt;drag &amp;amp; dropped a URL from a browser window&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;In all 3 cases I got the same result, similar to this log excerpt:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;sipe&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;sipe_core_im_send&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'test 1: &amp;lt;A HREF=&amp;quot;http://does.not.exist.com/index.html&amp;quot;&amp;gt;http://does.not.exist.com/index.html&amp;lt;/A&amp;gt;'&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;
&lt;span class="nx"&gt;MESSAGE&lt;/span&gt; &lt;span class="nb"&gt;START&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;SIP&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;2014&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;03&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="nx"&gt;T16&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mf"&gt;26.129329&lt;/span&gt;&lt;span class="nb"&gt;Z&lt;/span&gt;
&lt;span class="nx"&gt;MESSAGE&lt;/span&gt; &lt;span class="nx"&gt;sip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nx"&gt;.....&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;plain&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;charset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;UTF&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;msgr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nx"&gt;WAAtAE0ATQBTAC0ASQBNAC0ARgBvAHIAbQBhAHQAOgAgAEYATgA9AE0AUwAlADIAMABTAGEAbgBzACUAMgAwAFMAZQByAGkAZgA7ACAARQBGAD0AOwAgAEMATwA9ADAAOwAgAFAARgA9ADAAOwAgAFIATAA9ADAADQAKAA0ACgA&lt;/span&gt;
&lt;span class="nb"&gt;Content&lt;/span&gt;&lt;span class="na"&gt;-Length&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;44&lt;/span&gt;
&lt;span class="nx"&gt;...&lt;/span&gt;

&lt;span class="nx"&gt;test&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;http&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//does.not.exist.com/index.html&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I'm inclined to close this bug as WORKSFORME.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stefan Becker</dc:creator><pubDate>Tue, 18 Mar 2014 16:21:49 -0000</pubDate><guid>https://sourceforge.netb36c250f4d7ec6dc3d0d4f84c2a910dc036c3b00</guid></item><item><title>Outgoing messages with links contain bogus escaped ampersands</title><link>https://sourceforge.net/p/sipe/bugs/237/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I've tracked the issue down to the sipe_parse_html function in core/sipmsg.c. From what I could understand from my investigation so far, pidgin sends SIPE HTML formatted messages, and SIPE attempts to strip the HTML formatting to send the message with a "text/plain" content type to Lync.&lt;/p&gt;
&lt;p&gt;I'm sure there's a reason this is done instead of simply sending the pidgin HTML directly to Lync with the content type sent to "text/html", but I do not understand the plugin well enough to understand why. So I decided to try to correct the issue while keeping things as they are.&lt;/p&gt;
&lt;p&gt;The issue is that the parse_html function doesn't attempt to parse HTML escape sequences in the href property instead opting to dump the contents of href as is into the plain text return buffer. I'm attaching a patch here that straight copies the html escape character processing from later in the function and duplicates it in the link href processing section.&lt;/p&gt;
&lt;p&gt;I suspect that we'll all agree this is sub optimal, but it follows what's already in place.&lt;/p&gt;
&lt;p&gt;I've tested this, and it does appear to work when sending to other SIPE users and to native Lync 2013 clients.&lt;/p&gt;
&lt;p&gt;Another interesting behavior I don't yet have a patch for (and could honestly use some help with) is receiving URL's. When I have a contact send me a URL I see the URL description with escaped ampersands, but the links href also has them which results in the URL correctly opening. It would break, however, if I tried to copy that URL and paste it to another user. I'm not sure if this is something SIPE can fix or if it's a pidgin issue.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Michael&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Kreitzer</dc:creator><pubDate>Mon, 17 Mar 2014 23:45:20 -0000</pubDate><guid>https://sourceforge.net795c86a333038a330e9d862f839259169c5c05cc</guid></item></channel></rss>