Skip to content

Commit

Permalink
[FIX] support for spaces in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
chfsx committed Feb 15, 2024
1 parent 36cfa88 commit bcfbdb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Services/WebAccessChecker/classes/class.ilWACPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ public static function setVideoSuffixes(array $video_suffixes)
protected function normalizePath(string $path) : string
{
$path = ltrim($path, '.');
$path = urldecode($path);

// cut everything before "data/" (for installations using a subdirectory)
$path = strstr($path, '/' . self::DIR_DATA . '/');

Expand Down

0 comments on commit bcfbdb1

Please sign in to comment.