From eb0e12027eecd83c7f573b19cd7b4204ffa208ce Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Fri, 4 Nov 2011 13:52:57 +0000
Subject: [PATCH] Special Char issues with logs.  I really think I have
 submitted this one fix several times.

---
 interface/web/monitor/show_log.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/monitor/show_log.php b/interface/web/monitor/show_log.php
index c033c9c2b1..10abacd1fb 100644
--- a/interface/web/monitor/show_log.php
+++ b/interface/web/monitor/show_log.php
@@ -124,7 +124,7 @@ $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE t
 if(isset($record['data'])) {
 	$data = unserialize($record['data']);
 
-	$logData = nl2br($data);
+	$logData = nl2br(htmlspecialchars($data));
 
 	$app->tpl->setVar("log_data", $logData);
 } else {
-- 
GitLab