From f426db28c8ee2e4df7e80e57fcfc767c560f1f05 Mon Sep 17 00:00:00 2001 From: singhharsh1708 Date: Sun, 6 Sep 2026 14:19:38 +0530 Subject: [PATCH] fix: escape names and paths written into html --- web/ajax/modals/storage.php | 6 +++--- web/skins/classic/views/_options_controlcaps.php | 2 +- web/skins/classic/views/event.php | 2 +- web/skins/classic/views/report.php | 2 +- web/skins/classic/views/timeline.php | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/ajax/modals/storage.php b/web/ajax/modals/storage.php index 3abc72e26..b8de0db2b 100644 --- a/web/ajax/modals/storage.php +++ b/web/ajax/modals/storage.php @@ -59,15 +59,15 @@ - + - + - + diff --git a/web/skins/classic/views/_options_controlcaps.php b/web/skins/classic/views/_options_controlcaps.php index aab6d2525..d699b8685 100644 --- a/web/skins/classic/views/_options_controlcaps.php +++ b/web/skins/classic/views/_options_controlcaps.php @@ -58,7 +58,7 @@ foreach( $controls as $control ) { - + diff --git a/web/skins/classic/views/event.php b/web/skins/classic/views/event.php index e1ce6e85c..724fdc857 100644 --- a/web/skins/classic/views/event.php +++ b/web/skins/classic/views/event.php @@ -492,7 +492,7 @@ if (defined('AUDIO_MOTION_ENABLED') && AUDIO_MOTION_ENABLED) echo ' ' . PHP_EOL; ?>
- Name() . " (". translate('ID'). "=" . $monitor->Id() . ")"; ?> + Name()) . " (". translate('ID'). "=" . $monitor->Id() . ")"; ?>

diff --git a/web/skins/classic/views/report.php b/web/skins/classic/views/report.php index aefd1144d..d6ac92326 100644 --- a/web/skins/classic/views/report.php +++ b/web/skins/classic/views/report.php @@ -54,7 +54,7 @@ getBodyTopHTML(); - + diff --git a/web/skins/classic/views/timeline.php b/web/skins/classic/views/timeline.php index ca0aafc4d..c7f260296 100644 --- a/web/skins/classic/views/timeline.php +++ b/web/skins/classic/views/timeline.php @@ -810,8 +810,8 @@ foreach ( array_keys($monEventSlots) as $monitorId ) { - Name() ?> -

+ Name()) ?> +