fixed regex
This commit is contained in:
parent
78c96806bf
commit
b476a5c2f6
|
@ -120,7 +120,7 @@ if (isset($_POST['submit'])) {
|
||||||
if ($_POST['logDestination'] == "none") $cfg->logDestination = "NONE";
|
if ($_POST['logDestination'] == "none") $cfg->logDestination = "NONE";
|
||||||
elseif ($_POST['logDestination'] == "syslog") $cfg->logDestination = "SYSLOG";
|
elseif ($_POST['logDestination'] == "syslog") $cfg->logDestination = "SYSLOG";
|
||||||
else {
|
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'];
|
$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 -.");
|
else $errors[] = _("The log file is empty or contains invalid characters! Valid characters are: a-z, A-Z, 0-9, /, \\, ., :, _ and -.");
|
||||||
|
|
Loading…
Reference in New Issue