Projects
Kolab:3.4
kolab-freebusy
kolab-freebusy-1.0.4-config.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kolab-freebusy-1.0.4-config.patch of Package kolab-freebusy (Revision 25)
Currently displaying revision
25
,
Show latest
commit 92f8c8a6bb883d7778af2a9670ca1fc5853991eb Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Date: Thu May 22 14:02:12 2014 +0200 Only prepend the base directory if it in fact is an absolute path, with basedir ../config we got ../config/../config/config.ini, which realpath() chokes on diff --git a/lib/Kolab/Config.php b/lib/Kolab/Config.php index 2aa49bb..c83e146 100644 --- a/lib/Kolab/Config.php +++ b/lib/Kolab/Config.php @@ -112,7 +112,7 @@ class Config */ protected function resolve_path($file, $use_env) { - if ($file[0] != '/') { + if ($file[0] != '/' && $this->basedir[0] == '/') { $file = realpath($this->basedir . '/' . $file); }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.