Sam Varshavchik writes:

> Robert August Vincent II writes:  
> 
>> On Tue, Jun 05, 2001 at 05:18:07PM +0000, William V Wishon wrote:
>>> 
>>> Hi all,  
>>> 
>>> I've been using sqwebmail for some time now and have been liking it a 
>>> lot.  Also for some time now I have had a problem with the way external 
>>> links are handled in Opera.  Here's the problem:  When I click an 
>>> external link in an email, I end up with a new window with something 
>>> like this as the address: 
>>> https://mail.wishon.org/%22http://www.nytimes.com/2001/06/05/business/05 
>>> GAS. html%22
>>> This gives me a 404, if I strip away the extraneous stuff the link 
>>> itself is fine.   
>>> 
>>> I'm using Opera 5.11 on windows, sqwebmail version 2.0.0, running on 
>>> FreeBSD 4.3-STABLE   
>>> 
>>> This works fine in IE so it looks like an Opera bug, but if I new a 
>>> little more about how the redirection is happening I might be able to 
>>> tweak a setting somewhere in opera or in sqwebmail to fix it, or perhaps 
>>> just be able to file a more descriptive bug with Opera.   
>>> 
>>> Thanks,
>>> Bill
>> 
>> Konqueror has the same "bug".  
>> 
>> I've been meaning to grub around the source code to figure out why.  
>> 
>> Any thoughts, Sam?
> 
> Nope.  Recognizes URLs in text/plain content are linked as 
> http://pathtosqwebmail?redirect=http%2A%2F%2Fescaped-url, where 
> "escaped-url" is the original URL, %-escaped.  
> 
> Mozilla, Netscape, and lynx all handle them just fine.  
> 
>  
> 
> -- 
> Sam  
> 

The hyperlink that is in the email looks like what you said, like this 

http://mail.wishon.org/?redirect=http%3A%2F%2Fwww.nytimes.com%2F2001%2F06%2F 
05%2Fpolitics%2F05BUSH.html 

If I put that into a new window it successfully loads the sqwebmail page, I 
can see the background for a second before it redirects to what should be 
the real url.  It is that second url that is the one in error.  Using 
ethereal I was able to determine that the thing trying to cause the refresh 
is a Refresh Header like this: 

Refresh: 0; URL="http://www.nytimes.com/2001/06/05/politics/05BUSH.html"; 

I couldn't find the Refresh header mentioned in the http spec, is it part of 
the http standard?  Opera is interpreting the url as a url relative to the 
current host and sending a get request to mail.wishon.org like this: 

GET /%22http://www.nytimes.com/2001/06/05/politics/05BUSH.html%22 HTTP/1.1
User-Agent: Opera/5.0 (Linux 2.4.1 i686; U)  [en]
Host: mail.wishon.org 

Which is what causes the 404 on my server. Is this a missinterpretation of 
the Refresh header? 

 -Bill 

Reply via email to