6.0.0-beta1
7/25/25

[#1633] url limit in IE using meta refresh?
Summary url limit in IE using meta refresh?
Queue IMP
Queue Version 4.0.2
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester eli (at) experthost (dot) com
Created 03/28/2005 (7424 days ago)
Due
Updated 03/28/2005 (7424 days ago)
Assigned
Resolved 03/28/2005 (7424 days ago)
Milestone
Patch No

History
03/28/2005 11:03:02 PM Jan Schneider Comment #2
State ⇒ Rejected
Reply to this comment
Questions should be asked on the mailing list.



The refresh is necessary to avoid security warnings with IE if  using 
the "SSL for login" feature. Using overlong URLs is always a bad idea.
03/28/2005 10:32:22 PM eli (at) experthost (dot) com Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ url limit in IE using meta refresh?
Queue ⇒ IMP
Reply to this comment
I have made a patch that allows me to define a custom login error 
message from the pre/post auth hooks in Horde.



I had not tested its effects in IE until today when a client reported 
IMP hanging on redirect.php when trying to log in.



I have since apparently discovered that IE (6, latest w/patches in 
WinXP) is apparently exhibiting a 165 character limit when using a 
Refresh: header



In redirect.php, I modified line 170 from:



header('Refresh: 0; URL=' . $url);



to:



header('Location: ' . $url);



and it seems to have fixed my problem.  The problem was that if if the 
URL was longer than 165 characters, IE would not honor the Refresh: 
header and just hang.  Once using the Location: header, IE redirects 
properly and functions fine.



Is there a specific reason to using the Refresh: header in 
redirect.php?  Can it safely be switched to using Location: instead?   
Also, do you notice this same problem with your IE browser (I have 
confirmed this on a few IE installs - no problem in Firefox).



Eli.

Saved Queries