From 9c4734637348eb82224fe15f17a16b07b858e498 Mon Sep 17 00:00:00 2001
From: Tom Needham <needham.thomas@gmail.com>
Date: Tue, 8 May 2012 19:41:31 +0000
Subject: [PATCH] Protect admin from evil log messages

---
 lib/log.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
 }
-- 
GitLab