diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-12-27 12:35:29 -0500 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-12-27 12:35:29 -0500 |
commit | 95b9f4ed2325240411d4e349277c743aef06de6c (patch) | |
tree | 31162a0eac610a6249b42a6c3bdeae3755a181be /files/templates/part.list.php | |
parent | 5bff1c8ad1708cff4a61ef28a62901efc617ef01 (diff) | |
download | nextcloud-server-95b9f4ed2325240411d4e349277c743aef06de6c.tar.gz nextcloud-server-95b9f4ed2325240411d4e349277c743aef06de6c.zip |
Fix folder names with + characters in it
Diffstat (limited to 'files/templates/part.list.php')
-rw-r--r-- | files/templates/part.list.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 46830ba3a37..157ec4ef42c 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -5,10 +5,10 @@ $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 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'];?>'> + <tr data-file="<?php echo str_replace('+','%2B',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=""> + <a class="name" href="<?php if($file['type'] == 'dir') echo $_['baseURL'].str_replace('%2F','/',urlencode($file['directory'])).'/'.urlencode($file['name']); else echo $_['downloadURL'].str_replace('%2F','/',urlencode($file['directory'])).'/'.urlencode($file['name']); ?>" title=""> <span class="nametext"> <?php if($file['type'] == 'dir'):?> <?php echo htmlspecialchars($file['name']);?> |