Menu

#323 contentDir without trailing slash in settings.xml fails to find files

5.0.0
closed
nobody
None
bug
2017-07-19
2017-06-02
kaihowl
No

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.

Discussion

  • Uwe Steinmann

    Uwe Steinmann - 2017-07-19
    • status: open --> closed
     
  • Uwe Steinmann

    Uwe Steinmann - 2017-07-19

    When reading the settings it is ensured that contentDir always ends with a DIRECTORY_SEPARATOR

    Fixed in 4.3.36 and above.

     

Log in to post a comment.

MongoDB Logo MongoDB