[VD:abstract,LocalFileSystem] fix #1744 results url must be urlencoded

This commit is contained in:
nao-pon
2016-11-14 17:41:37 +09:00
parent ac1a907aa4
commit a12ea6ec9f
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1245,7 +1245,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$stat['path'] = $this->path($stat['hash']);
if ($this->URL && !isset($stat['url'])) {
$_path = str_replace(DIRECTORY_SEPARATOR, '/', substr($p, strlen($this->root) + 1));
$stat['url'] = $this->URL . $_path;
$stat['url'] = $this->URL . str_replace('%2F', '/', rawurlencode($_path));
}
$result[] = $stat;