6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4126] Make registry.php webroot path detection more reliable
*
Your Email Address
*
Spam protection
Enter the letters below:
.. ..___..__ .__. ||\/| _/ [__)| | \__|| |./__.| |__|
Comment
>> 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!
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers