diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/LogController.php b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/LogController.php index bf05d78b6..66414f022 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/LogController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/LogController.php @@ -38,8 +38,8 @@ class LogController extends IndexController public function renderPage($module, $scope) { $this->view->pick('OPNsense/Diagnostics/log'); - $this->view->module = $module; - $this->view->scope = $scope; + $this->view->module = htmlspecialchars($module, ENT_QUOTES | ENT_HTML401); + $this->view->scope = htmlspecialchars($scope, ENT_QUOTES | ENT_HTML401); $this->view->service = ''; $this->view->default_log_severity = 'Warning';