diff options
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 79d5395ae..1f07ae4ec 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -764,6 +764,11 @@ class File extends MY_Controller { foreach($history["items"] as $key => $item) { $history["items"][$key]["filesize"] = format_bytes($item["filesize"]); + + if (isset($item['preview_text'])) { + $history["items"][$key]["preview_text"] = htmlentities($item['preview_text']); + } + if (is_cli_client()) { // Keep track of longest string to pad plaintext output correctly foreach($fields as $length_key => $value) { |