diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-03-03 23:46:08 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-03-03 23:46:08 +0100 |
commit | 962b7a7c80e5581381ac25dd79ae40c09fc4667b (patch) | |
tree | 149057092e72b30a61166c4e42a41750134b1b13 /settings | |
parent | ef01e0cdc5459373f253886c5adcd9e09fa003fa (diff) | |
download | nextcloud-server-962b7a7c80e5581381ac25dd79ae40c09fc4667b.tar.gz nextcloud-server-962b7a7c80e5581381ac25dd79ae40c09fc4667b.zip |
Add log as text and not as HTML
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/getlog.php | 11 | ||||
-rw-r--r-- | settings/js/log.js | 2 |
2 files changed, 3 insertions, 10 deletions
diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php index e1fc1689877..141457e72a0 100644 --- a/settings/ajax/getlog.php +++ b/settings/ajax/getlog.php @@ -12,14 +12,7 @@ $offset=(isset($_GET['offset']))?$_GET['offset']:0; $entries=OC_Log_Owncloud::getEntries($count, $offset); $data = array(); -foreach($entries as $entry) { - $data[] = array( - 'level' => OC_Util::sanitizeHTML($entry->level), - 'app' => OC_Util::sanitizeHTML($entry->app), - 'message' => OC_Util::sanitizeHTML($entry->message), - 'time' => OC_Util::sanitizeHTML($entry->time), - ); -} + OC_JSON::success(array( - "data" => $data, + "data" => $entries, "remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $offset)) != 0) ? true : false)); diff --git a/settings/js/log.js b/settings/js/log.js index 04a7bf8b288..09b8ec1ab44 100644 --- a/settings/js/log.js +++ b/settings/js/log.js @@ -42,7 +42,7 @@ OC.Log={ row.append(appTd); var messageTd=$('<td/>'); - messageTd.html(entry.message); + messageTd.text(entry.message); row.append(messageTd); var timeTd=$('<td/>'); |