Add log as text and not as HTML

remotes/origin/stable5
Lukas Reschke 12 years ago
parent ef01e0cdc5
commit 962b7a7c80
  1. 11
      settings/ajax/getlog.php
  2. 2
      settings/js/log.js

@ -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));

@ -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/>');

Loading…
Cancel
Save