diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-05 21:54:32 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-05 21:54:32 -0500 |
commit | 4dcbaa1d7bf3c94a92ac8a848305913e57a17ec5 (patch) | |
tree | 59113a180157e2037f3c127489e735bba173ccd6 /apps/files_trashbin/templates/part.list.php | |
parent | ee0c38bb5112af4aa491b526ca390de52dd3ab7e (diff) | |
parent | c1a32b50735b0a8558823d111e546865ddcba790 (diff) | |
download | nextcloud-server-4dcbaa1d7bf3c94a92ac8a848305913e57a17ec5.tar.gz nextcloud-server-4dcbaa1d7bf3c94a92ac8a848305913e57a17ec5.zip |
Merge branch 'master' into shared-folder-etags
Conflicts:
apps/files_sharing/appinfo/app.php
Diffstat (limited to 'apps/files_trashbin/templates/part.list.php')
-rw-r--r-- | apps/files_trashbin/templates/part.list.php | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php index dea0a43cd4c..92a38bd2635 100644 --- a/apps/files_trashbin/templates/part.list.php +++ b/apps/files_trashbin/templates/part.list.php @@ -1,4 +1,4 @@ -<input type="hidden" id="disableSharing" data-status="<?php echo $_['disableSharing']; ?>"> +<input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"> <?php foreach($_['files'] as $file): $relative_deleted_date = OCP\relative_modified_date($file['timestamp']); // the older the file, the brighter the shade of grey; days*14 @@ -8,48 +8,48 @@ $name = str_replace('%2F', '/', $name); $directory = str_replace('+', '%20', urlencode($file['directory'])); $directory = str_replace('%2F', '/', $directory); ?> - <tr data-filename="<?php echo $file['name'];?>" - data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" - data-mime="<?php echo $file['mimetype']?>" - data-permissions='<?php echo $file['permissions']; ?>' + <tr data-filename="<?php p($file['name']);?>" + data-type="<?php ($file['type'] == 'dir')?p('dir'):p('file')?>" + data-mime="<?php p($file['mimetype'])?>" + data-permissions='<?php p($file['permissions']); ?>' <?php if ( $_['dirlisting'] ): ?> - id="<?php echo $file['directory'].'/'.$file['name'];?>" - data-file="<?php echo $file['directory'].'/'.$file['name'];?>" + id="<?php p($file['directory'].'/'.$file['name']);?>" + data-file="<?php p($file['directory'].'/'.$file['name']);?>" data-timestamp='' data-dirlisting=1 <?php else: ?> - id="<?php echo $file['name'].'.d'.$file['timestamp'];?>" - data-file="<?php echo $file['name'].'.d'.$file['timestamp'];?>" - data-timestamp='<?php echo $file['timestamp'];?>' + id="<?php p($file['name'].'.d'.$file['timestamp']);?>" + data-file="<?php p($file['name'].'.d'.$file['timestamp']);?>" + data-timestamp='<?php p($file['timestamp']);?>' data-dirlisting=0 <?php endif; ?>> <td class="filename svg" <?php if($file['type'] == 'dir'): ?> - style="background-image:url(<?php echo OCP\mimetype_icon('dir'); ?>)" + style="background-image:url(<?php print_unescaped(OCP\mimetype_icon('dir')); ?>)" <?php else: ?> - style="background-image:url(<?php echo OCP\mimetype_icon($file['mimetype']); ?>)" + style="background-image:url(<?php print_unescaped(OCP\mimetype_icon($file['mimetype'])); ?>)" <?php endif; ?> > <?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?> <?php if($file['type'] == 'dir'): ?> <?php if( $_['dirlisting'] ): ?> - <a class="name" href="<?php echo $_['baseURL'].'/'.$name; ?>" title=""> + <a class="name" href="<?php p($_['baseURL'].'/'.$name); ?>" title=""> <?php else: ?> - <a class="name" href="<?php echo $_['baseURL'].'/'.$name.'.d'.$file['timestamp']; ?>" title=""> + <a class="name" href="<?php p($_['baseURL'].'/'.$name.'.d'.$file['timestamp']); ?>" title=""> <?php endif; ?> <?php else: ?> <?php if( $_['dirlisting'] ): ?> - <a class="name" href="<?php echo $_['downloadURL'].'/'.$name; ?>" title=""> + <a class="name" href="<?php p($_['downloadURL'].'/'.$name); ?>" title=""> <?php else: ?> - <a class="name" href="<?php echo $_['downloadURL'].'/'.$name.'.d'.$file['timestamp'];?>" title=""> + <a class="name" href="<?php p($_['downloadURL'].'/'.$name.'.d'.$file['timestamp']);?>" title=""> <?php endif; ?> <?php endif; ?> <span class="nametext"> <?php if($file['type'] == 'dir'):?> - <?php echo htmlspecialchars($file['name']);?> + <?php print_unescaped(htmlspecialchars($file['name']));?> <?php else:?> - <?php echo htmlspecialchars($file['basename']);?><span - class='extension'><?php echo $file['extension'];?></span> + <?php print_unescaped(htmlspecialchars($file['basename']));?><span + class='extension'><?php p($file['extension']);?></span> <?php endif;?> </span> <?php if($file['type'] == 'dir'):?> @@ -60,11 +60,11 @@ </td> <td class="date"> <span class="modified" - title="<?php echo $file['date']; ?>" - style="color:rgb(<?php echo $relative_date_color.',' + title="<?php p($file['date']); ?>" + style="color:rgb(<?php p($relative_date_color.',' .$relative_date_color.',' - .$relative_date_color ?>)"> - <?php echo $relative_deleted_date; ?> + .$relative_date_color) ?>)"> + <?php p($relative_deleted_date); ?> </span> </td> </tr> |