diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-03-04 02:46:08 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-03-04 02:46:08 +0400 |
commit | 962b7a7c80e5581381ac25dd79ae40c09fc4667b (patch) | |
tree | 149057092e72b30a61166c4e42a41750134b1b13 /settings/ajax | |
parent | ef01e0cdc5459373f253886c5adcd9e09fa003fa (diff) |
Add log as text and not as HTML
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/getlog.php | 11 |
1 files changed, 2 insertions, 9 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)); |