From b0c9f21d46c9d604a3debe3e7359de4c8cc0b2f7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Jan 2009 21:52:12 +0000 Subject: [PATCH] Add option MAIN_LOGTOHTML to help debug --- htdocs/lib/functions.lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index f90d6754ddc..1c6de18a1c1 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -183,12 +183,10 @@ function dol_syslog($message, $level=LOG_INFO) global $conf,$user,$langs,$_REQUEST; // If adding log inside HTML page is required - /* Disabled because this is a security hole - if (! empty($_REQUEST['logtohtml'])) + if (! empty($_REQUEST['logtohtml']) && ! empty($conf->global->MAIN_LOGTOHTML)) { $conf->logbuffer[]=strftime("%Y-%m-%d %H:%M:%S",time())." ".$message; } - */ // If syslog module enabled if (! empty($conf->syslog->enabled))