guard against unsafe monitor name
parent
0689e8453c
commit
5bf894d263
|
@ -607,8 +607,8 @@ if ( !empty($action) )
|
|||
foreach( $markEids as $markEid )
|
||||
deleteEvent( $markEid );
|
||||
|
||||
deletePath( ZM_DIR_EVENTS."/".$monitor['Name'] );
|
||||
deletePath( ZM_DIR_EVENTS."/".$monitor['Id'] );
|
||||
deletePath( ZM_DIR_EVENTS."/".basename($monitor['Name']) );
|
||||
deletePath( ZM_DIR_EVENTS."/".$monitor['Id'] ); // I'm trusting the Id.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue