Santisize zmMontageLayout when passing to constructor

pull/4020/head
Isaac Connor 2024-05-21 09:22:55 -04:00
parent 9dd58855d1
commit 9cc8ec7048
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ if ( isset($_REQUEST['object']) ) {
} }
} else if ($action == 'Delete') { // end if save } else if ($action == 'Delete') { // end if save
if ( isset($_REQUEST['zmMontageLayout']) ) { if ( isset($_REQUEST['zmMontageLayout']) ) {
$Layout = new ZM\MontageLayout($_REQUEST['zmMontageLayout']); $Layout = new ZM\MontageLayout(validCardinal($_REQUEST['zmMontageLayout']));
} else { } else {
ZM\Warning('Name of layout to be deleted is not specified'); ZM\Warning('Name of layout to be deleted is not specified');
return; return;