contentDir without trailing slash in settings.xml fails to find files
Open Source Document Management System
Brought to you by:
steinm
When the contentDir is specified in settings.xml without a trailing slash, no files will be found as the path used to open files is always specified as a simple concatenation of the contentDir and the file path. Without a trailing slash, the contentDir and the file path are just joined without a slash in between.
controllers/class.ViewOnline.php line 42 for example. This should use a proper path concatenation function instead.
When reading the settings it is ensured that contentDir always ends with a DIRECTORY_SEPARATOR
Fixed in 4.3.36 and above.