X-Git-Url: https://git.cweiske.de/noxon-gateway.git/blobdiff_plain/4233101d0f4a9ce02d399e98ea97ceade9ce42a5..1e760a31e2856fd1af842c206d0a567a3b6a3073:/src/mediatomb.php?ds=sidebyside diff --git a/src/mediatomb.php b/src/mediatomb.php index 74b7f84..e8bbfcb 100644 --- a/src/mediatomb.php +++ b/src/mediatomb.php @@ -9,7 +9,7 @@ function handleRequestMediatomb($fullPath, $prefix) try { $smt = new Services_MediaTomb($user, $pass, $host, $port); - $path = substr(urldecode($fullPath), strlen($prefix)); + $path = substr($fullPath, strlen($prefix)); $container = $smt->getContainerByPath($path); $listItems = array(); addPreviousItem($listItems, $fullPath); @@ -17,7 +17,7 @@ function handleRequestMediatomb($fullPath, $prefix) foreach ($container->getContainers() as $subContainer) { $listItems[] = getDirItem( $subContainer->title, - $fullPath . rawurlencode($subContainer->title) . '/' + pathEncode($fullPath . $subContainer->title) . '/' ); }