Accept also mailing lists with a '-' in their name

This commit is contained in:
2021-07-23 15:31:35 +02:00
parent 81d0c6e6ef
commit 042c9e3ab6

View File

@@ -12,7 +12,7 @@ if (!isset($_SESSION["auth"]) || $_SESSION["auth"] != 1)
// We do not print any error in the next three cases, because a legitimate // We do not print any error in the next three cases, because a legitimate
// user will never produce such results, even with disabled javascript // user will never produce such results, even with disabled javascript
if ( preg_match("/[^a-z0-9_]/", $list_name) ) if ( preg_match("/[^a-z0-9_-]/", $list_name) )
{ {
header("Location: error.php"); header("Location: error.php");
exit(); exit();