mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Fix encoding settings ajax getlog
This commit is contained in:
parent
0488968443
commit
376f350af2
1 changed files with 10 additions and 1 deletions
|
|
@ -11,6 +11,15 @@ $count=(isset($_GET['count']))?$_GET['count']:50;
|
|||
$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" => OC_Util::sanitizeHTML($entries),
|
||||
"data" => $data,
|
||||
"remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $offset)) != 0) ? true : false));
|
||||
|
|
|
|||
Loading…
Reference in a new issue