summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-06 11:55:44 -0700
committerBart Visscher <bartv@thisnet.nl>2013-04-06 11:55:44 -0700
commit248e097f3cdd258e00bea373e84add14a7665a5b (patch)
treec92cdc4f535f5d3c2661fba4c944fdefee4de855 /apps
parent797b529da7aecb5d438e1e7abd530d04c1ff499b (diff)
parentab5e20a2c18fca77aaf12c360e324ab0882a495e (diff)
downloadnextcloud-server-248e097f3cdd258e00bea373e84add14a7665a5b.tar.gz
nextcloud-server-248e097f3cdd258e00bea373e84add14a7665a5b.zip
Merge pull request #1974 from owncloud/use-rawurlencode
OC6- Just use rawurlencode in files list template
Diffstat (limited to 'apps')
-rw-r--r--apps/files/templates/part.list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index 59267690e66..1719d25e660 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -9,9 +9,9 @@
// 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>200) $relative_date_color = 200;
- $name = str_replace('+', '%20', urlencode($file['name']));
+ $name = rawurlencode($file['name']);
$name = str_replace('%2F', '/', $name);
- $directory = str_replace('+', '%20', urlencode($file['directory']));
+ $directory = rawurlencode($file['directory']);
$directory = str_replace('%2F', '/', $directory); ?>
<tr data-id="<?php p($file['fileid']); ?>"
data-file="<?php p($name);?>"