Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Fix(security): security vulnerabilities in viewLog.php #12046

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion www/include/eventLogs/viewLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function log_4_engine_page(id, formu, num) {
var _host = <?php echo !empty($user_params["log_filter_host"]) ? $user_params["log_filter_host"] : 'false'; ?>;
var _service = <?php echo !empty($user_params["log_filter_svc"]) ? $user_params["log_filter_svc"] : 'false'; ?>;
// Casting engine variable so that it can be properly interpreted in JS
var _engine = <?php echo (int) $getInputs['engine']; ?>;
var _engine = <?php echo htmlspecialchars((int)$getInputs['engine']); ?>;

var _down = <?php echo $user_params["log_filter_host_down"]; ?>;
<?php echo !empty($user_params["log_filter_notif"]) ? $user_params["log_filter_notif"] : 'false'; ?>;
Expand Down