diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-10 09:13:09 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-10 09:13:09 +0200 |
commit | a9d7c67bf2e906fceea40b41f4780e623226fdff (patch) | |
tree | a2cb6af3360647057ca5e8352cea86c35239f564 | |
parent | 94803dc22207926439414d597d830db8aacc0db6 (diff) | |
download | nextcloud-server-a9d7c67bf2e906fceea40b41f4780e623226fdff.tar.gz nextcloud-server-a9d7c67bf2e906fceea40b41f4780e623226fdff.zip |
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.
-rw-r--r-- | lib/log.php | 2 | ||||
-rw-r--r-- | settings/templates/admin.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/log.php b/lib/log.php index bccc46846ce..8bb2839be66 100644 --- a/lib/log.php +++ b/lib/log.php @@ -34,6 +34,6 @@ class OC_Log { call_user_func(array(self::$class, 'init')); } $log_class=self::$class; - $log_class::write($app, htmlentities($message), $level); + $log_class::write($app, $message, $level); } } diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 38c6042c82a..d167f2780ef 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -29,7 +29,7 @@ $levels=array('Debug','Info','Warning','Error','Fatal'); <?php echo $entry->app;?> </td> <td> - <?php echo $entry->message;?> + <?php echo htmlentities($entry->message);?> </td> <td> <?php echo OC_Util::formatDate($entry->time);?> |