Skip to content
Snippets Groups Projects
Commit 4dd04817 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

fix urlencoding

parent 7869b2c3
No related branches found
No related tags found
No related merge requests found
...@@ -376,7 +376,7 @@ class OwncloudFolder extends VirtualFolderType { ...@@ -376,7 +376,7 @@ class OwncloudFolder extends VirtualFolderType {
if ($nodeValue[0] === "/") { if ($nodeValue[0] === "/") {
$nodeValue = substr($nodeValue, 1); $nodeValue = substr($nodeValue, 1);
} }
$nodeValue = str_replace(array("(", ")"), array("%28", "%29"), $nodeValue); //for Owncloud only $nodeValue = str_replace(array("(", ")", "'", "$", "+", "!", "*", ","), array("%28", "%29", "%27", "%24", "%2B", "%21", "%2A", "%2C"), $nodeValue); //for Owncloud only
if (strpos(rawurldecode($nodeValue), rawurldecode($root)) !== false) { if (strpos(rawurldecode($nodeValue), rawurldecode($root)) !== false) {
$path = substr($nodeValue, strpos(rawurldecode($nodeValue), rawurldecode($root)) + strlen($root)); $path = substr($nodeValue, strpos(rawurldecode($nodeValue), rawurldecode($root)) + strlen($root));
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment