summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-27 21:53:46 +0100
committerBart Visscher <bartv@thisnet.nl>2013-02-27 21:53:46 +0100
commitab5e20a2c18fca77aaf12c360e324ab0882a495e (patch)
tree0630b53a548a86b2c2f547ec7525ac95ff2fe6a0 /apps
parent7eec31567fd699f3fac10c5d5bb5311874b235f1 (diff)
downloadnextcloud-server-ab5e20a2c18fca77aaf12c360e324ab0882a495e.tar.gz
nextcloud-server-ab5e20a2c18fca77aaf12c360e324ab0882a495e.zip
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 3c6c5dbd267..8b7ae236387 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 echo $file['fileid']; ?>"
data-file="<?php echo $name;?>"