make sure contentDir ends with DIRECTORY_SEPERATOR (Closes #323)

This commit is contained in:
Uwe Steinmann 2017-07-19 17:45:38 +02:00
parent 80ef51c0f3
commit 78ba1c131b

View File

@ -434,6 +434,8 @@ class Settings { /* {{{ */
$this->_rootDir = strval($tab["rootDir"]);
$this->_httpRoot = strval($tab["httpRoot"]);
$this->_contentDir = strval($tab["contentDir"]);
if(substr($this->_contentDir, -1, 1) != DIRECTORY_SEPARATOR)
$this->_contentDir .= DIRECTORY_SEPARATOR;
$this->_cacheDir = strval($tab["cacheDir"]);
$this->_stagingDir = strval($tab["stagingDir"]);
$this->_luceneDir = strval($tab["luceneDir"]);