Skip to content
Snippets Groups Projects
Commit a9d7c67b authored by Bart Visscher's avatar Bart Visscher
Browse files

The log message is not always shown in html

The log message can also be logged with syslog, here we don't want to have html-entities. Also the log messages through json are displayed as text not html.
parent 94803dc2
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,6 @@ class OC_Log { ...@@ -34,6 +34,6 @@ class OC_Log {
call_user_func(array(self::$class, 'init')); call_user_func(array(self::$class, 'init'));
} }
$log_class=self::$class; $log_class=self::$class;
$log_class::write($app, htmlentities($message), $level); $log_class::write($app, $message, $level);
} }
} }
...@@ -29,7 +29,7 @@ $levels=array('Debug','Info','Warning','Error','Fatal'); ...@@ -29,7 +29,7 @@ $levels=array('Debug','Info','Warning','Error','Fatal');
<?php echo $entry->app;?> <?php echo $entry->app;?>
</td> </td>
<td> <td>
<?php echo $entry->message;?> <?php echo htmlentities($entry->message);?>
</td> </td>
<td> <td>
<?php echo OC_Util::formatDate($entry->time);?> <?php echo OC_Util::formatDate($entry->time);?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment