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();