guard against unsafe monitor name

pull/442/head
Isaac Connor 2014-06-05 15:23:15 -04:00
parent 0689e8453c
commit 5bf894d263
1 changed files with 2 additions and 2 deletions

View File

@ -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.
}
}
}