escape log messages to avoid possible js execution

This commit is contained in:
Bjoern Schiessle 2012-06-18 09:42:31 +02:00
parent e5feb4e1aa
commit 91f69858e4

View file

@ -39,7 +39,7 @@ OC.Log={
row.append(appTd);
var messageTd=$('<td/>');
messageTd.text(entry.message);
messageTd.text(entry.message.replace(/</, "&lt;").replace(/>/, "&gt;"));
row.append(messageTd);
var timeTd=$('<td/>');