forked from services/mlmmj-light-web-ecg
Security check if list parameter is not set for edit_list and save_list
This commit is contained in:
@@ -28,7 +28,7 @@ if ( strlen($list_name) > 30 )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test list existence
|
// 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");
|
header("Location: error.php");
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ if ( strlen($list_name) > 30 )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Test list existence
|
// 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");
|
header("Location: error.php");
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
Reference in New Issue
Block a user