Security check if list parameter is not set for edit_list and save_list

This commit is contained in:
2022-02-01 13:12:28 +01:00
parent 15482bf028
commit b4cd6b8628
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ if ( strlen($list_name) > 30 )
}
// Test list existence
if( !is_dir("$lists_path/$domain/$list_name") )
if( !is_dir("$lists_path/$domain/$list_name") || $list_name == "" )
{
header("Location: error.php");
exit();