diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php
index 9945bd86..a3cdab1a 100644
--- a/lam/templates/config/mainmanage.php
+++ b/lam/templates/config/mainmanage.php
@@ -92,7 +92,7 @@ if (isset($_POST['submit'])) {
// check each line
$ipRegex = '/^[0-9\\.\\*]+$/';
if (!preg_match($ipRegex, $allowedHostsList[$i]) || (strlen($allowedHostsList[$i]) > 15)) {
- $errors[] = sprintf(_("The IP address %s is invalid!"), $allowedHostsList[$i]);
+ $errors[] = sprintf(_("The IP address %s is invalid!"), str_replace('%', '%%', $allowedHostsList[$i]));
}
}
$allowedHosts = implode(",", $allowedHostsList);
@@ -157,6 +157,8 @@ echo $_SESSION['header'];
+
+