mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-30 03:32:14 -04:00
Prevent XSS throu mids
This commit is contained in:
@@ -23,7 +23,7 @@ if ( isset($_REQUEST['mid']) ) {
|
||||
$mids = array();
|
||||
$mids[] = validInt($_REQUEST['mid']);
|
||||
} else if ( isset($_REQUEST['mids']) ) {
|
||||
$mids = $_REQUEST['mids'];
|
||||
$mids = arrap_map(function($thing){return validInt($thing);}, $_REQUEST['mids'] );
|
||||
} else {
|
||||
$mids = dbFetchAll('SELECT Id FROM Monitors'.($user->unviewableMonitorIds() ? 'WHERE Id IN ('.$user->viewableMonitorIds().')' : ''), 'Id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user