Skip to content
Snippets Groups Projects
Commit ab5e20a2 authored by Bart Visscher's avatar Bart Visscher
Browse files

Just use rawurlencode in files list template

parent 7eec3156
No related branches found
No related tags found
No related merge requests found
......@@ -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;?>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment