git.cweiske.de
/
noxon-gateway.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix URL encoding in mediatomb
[noxon-gateway.git]
/
src
/
mediatomb.php
diff --git
a/src/mediatomb.php
b/src/mediatomb.php
index 74b7f8479fdaa5d07f16cdf1ae621b8840355a72..e8bbfcb9d9c97b26c8b55d47125df186f1390f6a 100644
(file)
--- 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);
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);
$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,
foreach ($container->getContainers() as $subContainer) {
$listItems[] = getDirItem(
$subContainer->title,
-
$fullPath . rawurlencode(
$subContainer->title) . '/'
+
pathEncode($fullPath .
$subContainer->title) . '/'
);
}
);
}