From b476a5c2f6f979441ecc38e791b97741c69067d1 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 28 Oct 2009 16:05:25 +0000 Subject: [PATCH] fixed regex --- lam/templates/config/mainmanage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php index c86dfe58..5211282a 100644 --- a/lam/templates/config/mainmanage.php +++ b/lam/templates/config/mainmanage.php @@ -120,7 +120,7 @@ if (isset($_POST['submit'])) { if ($_POST['logDestination'] == "none") $cfg->logDestination = "NONE"; elseif ($_POST['logDestination'] == "syslog") $cfg->logDestination = "SYSLOG"; else { - if (isset($_POST['logFile']) && ($_POST['logFile'] != "") && preg_match("/^[a-z0-9/\\\\:\\._-]+$/i", $_POST['logFile'])) { + if (isset($_POST['logFile']) && ($_POST['logFile'] != "") && preg_match("/^[a-z0-9\\/\\\\:\\._-]+$/i", $_POST['logFile'])) { $cfg->logDestination = $_POST['logFile']; } else $errors[] = _("The log file is empty or contains invalid characters! Valid characters are: a-z, A-Z, 0-9, /, \\, ., :, _ and -.");