From 825317ec381ae3f28f814f66e380945e77f48982 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 6 Dec 2011 18:46:42 +1100 Subject: [PATCH] don't syslog() login attempts unless ['syslog'] is enabled --- mod.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod.php b/mod.php index 36c7a2f8..5822e3b5 100644 --- a/mod.php +++ b/mod.php @@ -33,7 +33,8 @@ if(!login($_POST['username'], $_POST['password'])) { - _syslog(LOG_WARNING, 'Unauthorized login attempt!'); + if($config['syslog']) + _syslog(LOG_WARNING, 'Unauthorized login attempt!'); loginForm($config['error']['invalid'], $_POST['username'], '?' . $query); }