Skip to content

Commit b3fdf2e

Browse files
committed
internal path for playlist items #510
1 parent 838d3e9 commit b3fdf2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Controller/CategoryController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,11 @@ private function StreamParser($fileId)
496496
$path = $line;
497497
} elseif (substr($line, 0, 3) === '../') {
498498
// relative one level up => remove the parent folder of the playlist file
499-
$line = substr($line, 3);
500499
$path = $playlistFilePath;
501-
array_pop($path);
500+
do {
501+
$line = substr($line, 3);
502+
array_pop($path);
503+
} while (substr($line, 0, 3) === '../');
502504

503505
array_push($path, $line);
504506
$path = implode('/', $path);

0 commit comments

Comments
 (0)