diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-04 19:23:31 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2013-07-09 17:46:11 +0300 |
commit | 582631323acb52b8348975d29a871d950c2e6451 (patch) | |
tree | efd31a08cb77079b27e1a10d3bb0d5c6ef703ff4 /apps/files/templates/part.list.php | |
parent | 5a3fce12a4496ec6d2903902e035af017e07f2f8 (diff) | |
download | nextcloud-server-582631323acb52b8348975d29a871d950c2e6451.tar.gz nextcloud-server-582631323acb52b8348975d29a871d950c2e6451.zip |
Migrate to encodePath
Diffstat (limited to 'apps/files/templates/part.list.php')
-rw-r--r-- | apps/files/templates/part.list.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 502ddd329b1..97a9026860b 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -17,10 +17,8 @@ $totalsize = 0; ?> // the older the file, the brighter the shade of grey; days*14 $relative_date_color = round((time()-$file['mtime'])/60/60/24*14); if($relative_date_color>160) $relative_date_color = 160; - $name = rawurlencode($file['name']); - $name = str_replace('%2F', '/', $name); - $directory = rawurlencode($file['directory']); - $directory = str_replace('%2F', '/', $directory); ?> + $name = \OCP\Util::encodePath($file['name']); + $directory = \OCP\Util::encodePath($file['directory']); ?> <tr data-id="<?php p($file['fileid']); ?>" data-file="<?php p($name);?>" data-type="<?php ($file['type'] == 'dir')?p('dir'):p('file')?>" |