diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-03-04 03:41:47 -0800 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-03-04 03:41:47 -0800 |
commit | 2a9c3c166067a71ac11057f345326e7744001441 (patch) | |
tree | 39a8f2efe1e71060d2fdde6d16b476b4e9c4bf8b /apps | |
parent | 05aad21b996a15a0d21e4437f90f6f7e97dbfac5 (diff) | |
parent | ccc4102cd9dbdd370505d7e87e0a2c2aa1677511 (diff) | |
download | nextcloud-server-2a9c3c166067a71ac11057f345326e7744001441.tar.gz nextcloud-server-2a9c3c166067a71ac11057f345326e7744001441.zip |
Merge pull request #2069 from owncloud/fix_sanitize_call
use p() for the output and not for the comparison
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/templates/part.list.php | 2 | ||||
-rw-r--r-- | apps/files_trashbin/templates/part.list.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 50330cc4911..59267690e66 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -15,7 +15,7 @@ $directory = str_replace('%2F', '/', $directory); ?> <tr data-id="<?php p($file['fileid']); ?>" data-file="<?php p($name);?>" - data-type="<?php p($file['type'] == 'dir')?'dir':'file'?>" + data-type="<?php ($file['type'] == 'dir')?p('dir'):p('file')?>" data-mime="<?php p($file['mimetype'])?>" data-size='<?php p($file['size']);?>' data-permissions='<?php p($file['permissions']); ?>'> diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php index 176ed6f03b3..92a38bd2635 100644 --- a/apps/files_trashbin/templates/part.list.php +++ b/apps/files_trashbin/templates/part.list.php @@ -9,7 +9,7 @@ $directory = str_replace('+', '%20', urlencode($file['directory'])); $directory = str_replace('%2F', '/', $directory); ?> <tr data-filename="<?php p($file['name']);?>" - data-type="<?php p(($file['type'] == 'dir')?'dir':'file')?>" + 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'] ): ?> |