summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2011-11-01 22:35:13 +0100
committerBrice Maron <brice@bmaron.net>2011-11-01 22:35:13 +0100
commitc7d1737d47c1846beee5d145dd73dd7924a6eea9 (patch)
tree15570e22b38ba794b7068e9a652e429e75f63df7 /files/templates
parente533e82bc9526ef9869b20e99b745c210348218f (diff)
downloadnextcloud-server-c7d1737d47c1846beee5d145dd73dd7924a6eea9.tar.gz
nextcloud-server-c7d1737d47c1846beee5d145dd73dd7924a6eea9.zip
attempt to manage some special chars in file list
Added a jquery function to filter by attributes. Add more logging in rename file Use the new function to avoid errors
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..b0ef73c4062 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 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="">