Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix specific urlencoding issues on webdav.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 9, 2016
1 parent d6aebbf commit ee5695e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -138,7 +138,10 @@ public function onComplete(CompleteEvent $event)
}
}

$propResult["name"] = urldecode(trim(str_replace($basePath, "", $href), "/"));
$baseDecoded = urldecode($basePath);
$hrefDecoded = urldecode($href);

$propResult["name"] = trim(str_replace($baseDecoded, "", $hrefDecoded), "/");

$isFile = $propResult["getcontenttype"] != "httpd/unix-directory";
$isFile &= $propResult["resourcetype"] != "collection";
Expand Down

0 comments on commit ee5695e

Please sign in to comment.