diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-05-08 19:41:31 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-05-08 19:41:31 +0000 |
commit | 9c4734637348eb82224fe15f17a16b07b858e498 (patch) | |
tree | bec124f921317f30bd40bf5d276d739ef5697fdb /lib/log.php | |
parent | 41d03088068a0f898c3711198b96c38a24ce3bb8 (diff) | |
download | nextcloud-server-9c4734637348eb82224fe15f17a16b07b858e498.tar.gz nextcloud-server-9c4734637348eb82224fe15f17a16b07b858e498.zip |
Protect admin from evil log messages
Diffstat (limited to 'lib/log.php')
-rw-r--r-- | lib/log.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.php b/lib/log.php index 8bb2839be66..bccc46846ce 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, $message, $level); + $log_class::write($app, htmlentities($message), $level); } } |