From: Bart Visscher Date: Wed, 27 Feb 2013 20:53:46 +0000 (+0100) Subject: Just use rawurlencode in files list template X-Git-Tag: v6.0.0alpha2~951^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab5e20a2c18fca77aaf12c360e324ab0882a495e;p=nextcloud-server.git Just use rawurlencode in files list template --- 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); ?>