[Tickets #4126] Re: Make registry.php webroot path detection more reliable
bugs@bugs.horde.org
bugs at bugs.horde.org
Sun Jan 21 05:10:06 PST 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://dev.horde.org/horde/whups/ticket/?id=4126
-----------------------------------------------------------------------
Ticket | 4126
Updated By | tinu at humbapa.ch
Summary | Make registry.php webroot path detection more reliable
Queue | Horde Base
Version | HEAD
Type | Enhancement
State | Feedback
Priority | 1. Low
Owners | Ben Klang
+New Attachment | registry.php.dist.patch
-----------------------------------------------------------------------
tinu at humbapa.ch (2007-01-21 05:10) wrote:
> Can you give me an example of your webroot? Did your modification
> make path detection work, or just avoid checks that would fail anyway?
horde basedir visible (-> 'intern'):
https://secure.humbapa.ch/agolution.ch/intern/whups/
horde basedir not visible (should also be 'intern'):
http://bugs.agolution.ch/whups/
I rearanged the code because I wanted the 'is my basedir visible'-check on
the first place. the reason was, that with your script, my page with the
hidden basedir did not work. my modification returns the right basedir for
both pages.
> Also, the way you reordered the checks mean that the check for
> $_SERVER['SCRIPT_URL'] and $_SERVER['SCRIPT_NAME'] will never be
> reached if $_SERVER['PHP_SELF'] is not set. Was that intentional? I
> don't know under what circumstances that would be true, but I do not
> see any reason why the latter should depend on the former.
your right. I was only looking for a fast solution and did not think about
that. :-)
I attached a new solution. it works for both of my pages.
thanks!
More information about the bugs
mailing list