diff --git a/save_list.php b/save_list.php index cdd2d9d..61d10e3 100644 --- a/save_list.php +++ b/save_list.php @@ -35,7 +35,7 @@ $domain = $_SESSION["domain"]; // We do not print any error in the next four cases, because a legitimate // user will never produce such results, even with disables javascript -if ( preg_match("/[^a-z0-9_]/", $list_name) ) +if ( preg_match("/[^a-z0-9_-]/", $list_name) ) { header("Location: error.php"); exit();