Bug #13051 redirect function in class.auth.php does not work just showing blank pages
Submitted: 8 Sep 2005 1:16 Modified: 16 Sep 2005 17:22
Reporter: Carsten Menke Email Updates:
Status: Closed Impact on me:
None 
Category:Eventum Severity:S2 (Serious)
Version:1.6.1 OS:Linux (Linux Debian 3.1)
Assigned to: Bryan Alsdorf CPU Architecture:Any

[8 Sep 2005 1:16] Carsten Menke
Description:
The redirect function used in class.auth.php doesn't work and just shows blank pages which do not contain a single line. This makes eventum completly unusable.

This may be because my setup is running in the following form:

http://subdomain.toplevel.net:port/eventum

eg. http://zeus.network.net:8888/eventum

However if you change 

Redirect=0; URL=$new_url 

to 

Location=$new_url 

it works. I've made up a patch which you can apply.

How to repeat:
Set up eventum whith apache2 and in the form http://site.domain.net:8888/eventum

Suggested fix:
Change 

header("Refresh: 0; URL=$new_url");

to

header("Location: $new_url");
[8 Sep 2005 1:28] Carsten Menke
Redirect Fix

Attachment: redirect.patch (application/octet-stream, text), 341 bytes.

[8 Sep 2005 1:29] Carsten Menke
BTW, I use the Location: method in my own cgi Scripts for 2 years without a problem in different installations
[16 Sep 2005 17:22] Bryan Alsdorf
Eventum uses this header because IIS 5.0 has a bug that causes cookies to be lost when using the Location header. However, since it appears Apache 2 has problems with the "Refresh" header I have added the Location header back for all servers except IIS. This is in our BitKeeper repository now and will be in our next release.