[Tickets #2458] "Redirection limit for this URL exceeded."

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Sep 2 03:47:43 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2458
-----------------------------------------------------------------------
 Ticket             | 2458
 Updated By         | horde-bugs at iansealy.com
 Summary            | "Redirection limit for this URL exceeded."
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 State              | Feedback
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


horde-bugs at iansealy.com (2005-09-02 03:47) wrote:

Thanks Jan. Making the following change to that function fixes this problem
for me:

791c791
<         $url = isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] :
$_SERVER['PHP_SELF'];
---
>         $url = $_SERVER['PHP_SELF'];

That's just changing it back to how it was in Horde 3.0.4 though.

In my setup, PHP_SELF is (for example):

/horde/login.php

Whereas SCRIPT_NAME is:

/php.fcgi

http://uk.php.net/manual/en/reserved.variables.php#55475 seems to say that
there's no ideal solution to this problem. Doh!

I'm not sure what problem the original change was trying to fix? Perhaps the
problem of PHP_SELF not always being set? If so, then maybe the check could
be the other way round? That is, use PHP_SELF if it's set, but otherwise use
SCRIPT_NAME.




More information about the bugs mailing list