6.0.0-beta13
4/11/26

[#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 9/27/09 (6040 days ago)
Due
Updated 9/28/09 (6039 days ago)
Assigned
Resolved 9/28/09 (6039 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
28.09.2009 09:48:31 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.
27.09.2009 20:19:09 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