From 042c9e3ab6a35b83a50d02181e459b1f889dfd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20S=C3=BC=C3=9Fenguth?= Date: Fri, 23 Jul 2021 15:31:35 +0200 Subject: [PATCH] Accept also mailing lists with a '-' in their name --- edit_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit_list.php b/edit_list.php index 00d179f..2310ccb 100644 --- a/edit_list.php +++ b/edit_list.php @@ -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 // 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"); exit();