mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-18 19:46:12 -04:00
fix: validate eventId in getNearEvents() in ajax/status.php
Apply validCardinal() to $_REQUEST['id'], consistent with the validation now used in getNearFrame() and getFrameImage(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -525,7 +525,7 @@ function getNearFrame() {
|
||||
function getNearEvents() {
|
||||
global $user, $sortColumn, $sortOrder;
|
||||
|
||||
$eventId = $_REQUEST['id'];
|
||||
$eventId = validCardinal($_REQUEST['id']);
|
||||
$NearEvents = array('EventId'=>$eventId);
|
||||
|
||||
$event = dbFetchOne('SELECT * FROM Events WHERE Id=?', NULL, array($eventId));
|
||||
|
||||
Reference in New Issue
Block a user