summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-11-04 03:00:03 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-04 03:00:03 +0100
commit2c68aab1983c912e52af6c0f62bc04850178894b (patch)
tree0cbf68f3be22624f2dbb8e1b752ad99e1679b625 /files/templates
parent0c890a501cc7c24fb7eb5a4e4bff35dd2bb56b6d (diff)
parentce2b39b398b1bf2143e1b16523de5325a766d24d (diff)
downloadnextcloud-server-2c68aab1983c912e52af6c0f62bc04850178894b.tar.gz
nextcloud-server-2c68aab1983c912e52af6c0f62bc04850178894b.zip
Merge branch 'master' into newbutton
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/part.list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 6bf5efe2fb2..46830ba3a37 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -5,7 +5,7 @@
$relative_modified_date = relative_modified_date($file['mtime']);
$relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey; days*14
if($relative_date_color>200) $relative_date_color = 200; ?>
- <tr data-file="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>'>
+ <tr data-file="<?php echo str_replace('+','%20',urlencode($file['name']));?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>" data-size='<?php echo $file['size'];?>'>
<td class="filename svg" style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mime']); ?>)">
<?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" /><?php } ?>
<a class="name" href="<?php if($file['type'] == 'dir') echo $_['baseURL'].$file['directory'].'/'.$file['name']; else echo $_['downloadURL'].urlencode($file['directory']).'/'.urlencode($file['name']); ?>" title="">