summaryrefslogtreecommitdiffstats
path: root/lib/log.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-05-08 19:41:31 +0000
committerTom Needham <needham.thomas@gmail.com>2012-05-08 19:41:31 +0000
commit9c4734637348eb82224fe15f17a16b07b858e498 (patch)
treebec124f921317f30bd40bf5d276d739ef5697fdb /lib/log.php
parent41d03088068a0f898c3711198b96c38a24ce3bb8 (diff)
downloadnextcloud-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.php2
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);
}
}