summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-19 17:24:55 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-19 17:24:55 +0200
commit089ae980c40544de54a10d407fd366f61ef5ec48 (patch)
tree30c78db1f04d53c9e595a933459668248aadcb4c /settings
parentd2936bd90caa2b256d32e7d349449ed58b28107b (diff)
downloadnextcloud-server-089ae980c40544de54a10d407fd366f61ef5ec48.tar.gz
nextcloud-server-089ae980c40544de54a10d407fd366f61ef5ec48.zip
use new sanitize HTML function
Diffstat (limited to 'settings')
-rw-r--r--settings/admin.php2
-rw-r--r--settings/ajax/getlog.php2
-rw-r--r--settings/js/log.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/settings/admin.php b/settings/admin.php
index 4cbd67c3678..a997bad4e3c 100644
--- a/settings/admin.php
+++ b/settings/admin.php
@@ -23,7 +23,7 @@ function compareEntries($a,$b){
usort($entries, 'compareEntries');
$tmpl->assign('loglevel',OC_Config::getValue( "loglevel", 2 ));
-$tmpl->assign('entries',$entries,false);
+$tmpl->assign('entries',$entries);
$tmpl->assign('forms',array());
foreach($forms as $form){
$tmpl->append('forms',$form);
diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php
index ed48b2cae1a..d9e80de37ba 100644
--- a/settings/ajax/getlog.php
+++ b/settings/ajax/getlog.php
@@ -14,4 +14,4 @@ $count=(isset($_GET['count']))?$_GET['count']:50;
$offset=(isset($_GET['offset']))?$_GET['offset']:0;
$entries=OC_Log_Owncloud::getEntries($count,$offset);
-OC_JSON::success(array("data" => $entries));
+OC_JSON::success(array("data" => OC_Util::sanitizeHTML($entries)));
diff --git a/settings/js/log.js b/settings/js/log.js
index bde8b8b104c..6063c7d9a9f 100644
--- a/settings/js/log.js
+++ b/settings/js/log.js
@@ -39,7 +39,7 @@ OC.Log={
row.append(appTd);
var messageTd=$('<td/>');
- messageTd.text(entry.message.replace(/</, "&lt;").replace(/>/, "&gt;"));
+ messageTd.text(entry.message);
row.append(messageTd);
var timeTd=$('<td/>');