6.0.0-beta1
7/27/25

[#8605] _detect_webroot doesn't detect webroot
Summary _detect_webroot doesn't detect webroot
Queue Horde Groupware
Queue Version 1.2.3
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester houdelou (at) hotmail (dot) com
Created 09/27/2009 (5782 days ago)
Due
Updated 09/28/2009 (5781 days ago)
Assigned
Resolved 09/28/2009 (5781 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/28/2009 09:48:31 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
_detect_webroot() is just a helper method to try to do a best guess on 
the webroot. If it doesn't work, don't use it, but set the webroot 
manually.
09/27/2009 08:19:09 PM houdelou (at) hotmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ _detect_webroot doesn't detect webroot
Queue ⇒ Horde Groupware
Milestone ⇒
Patch ⇒ No
Reply to this comment
If the path relative to the document root is an alias or a symbolic 
link which does not share the same local name on server, it does't 
work because of the following condition :



if (preg_match(';/' . $hordedir . ';', $path)) { ... }



Suppose that $hordedir is /var/www/horde-groupware-1.2.3 and $path is 
/horde, the function will return an empty string.


Saved Queries