I received an HTML email and when clicking on a hyperlink, it was rejected by our proxy server as "dangerous" even though I knew it wasn't. Further examination showed that this was caused by Pegasus constructing an incorrect hyperlink to pass to the browser. I have created a simplified example that shows the problem:
Here is the complete text of the email:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Pegasus - Link problem</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<base href="http://www.pmail.com/images/" />
</head>
<body>
Try this: Clicking here should take you to the downloads page:
<a href="../downloads.htm" title="downloads">click here</a> to open the Downloads page.
</body>
</html>
Note the hyperlink is relative to the base. When you click on the hyperlink, Pegasus passes to the browser the URL
"http://www.pmail.com./downloads.html",
which is almost correct except for the extra DOT after DOT com. In fact, the browser (FireFox and IE) will open the intended page. In my case, it was the proxy server that objected to the URL. The problem is present in Pegasus 4.51 and 4.41.
Also, "Copy Link to Clipboard", copies "../downloads.html", which could be argued is correct behavior, but will surprise the heck out of a non-technical user.
<p>I received an HTML email and when clicking on a hyperlink, it was rejected by our proxy server as "dangerous" even though I knew it wasn't. Further examination showed that this was caused by Pegasus constructing an incorrect hyperlink to pass to the browser. I have created a simplified example that shows the problem:</p>
<p>Here is the complete text of the email:</p>
<pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Pegasus - Link problem&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
&lt;base href="http://www.pmail.com/images/" /&gt;
&lt;/head&gt;
&lt;body&gt;
Try this: Clicking here should take you to the downloads page:
&lt;a href="../downloads.htm" title="downloads"&gt;click here&lt;/a&gt; to open the Downloads page.
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Note the hyperlink is relative to the base. When you click on the hyperlink, Pegasus passes to the browser the URL</p><p> "http://www.pmail.com./downloads.html",</p><p>which is almost correct except for the extra DOT after DOT com. In fact, the browser (FireFox and IE) will open the intended page. In my case, it was the proxy server that objected to the URL. The problem is present in Pegasus 4.51 and 4.41.</p>
<p>Also, "Copy Link to Clipboard", copies "../downloads.html", which could be argued is correct behavior, but will surprise the heck out of a non-technical user.</p>