From b00de6ffd70bed81e28a1be60d7fe1b04537afba Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 5 Aug 2024 21:08:19 +0200 Subject: [PATCH] fix xss vulnerability --- application/controllers/Qso.php | 5 +++++ application/views/qso/index.php | 26 +++++++++++++------------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 5463a0681..0a02437e9 100644 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -18,6 +18,11 @@ class QSO extends CI_Controller { $this->load->model('bands'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } + // Getting the live/post mode from GET command + // 0 = live + // 1 = post (manual) + $data['manual_mode'] = $this->security->xss_clean($this->input->get('manual')); + $data['active_station_profile'] = $this->stations->find_active(); $data['notice'] = false; diff --git a/application/views/qso/index.php b/application/views/qso/index.php index b54384a2b..45d5ceb02 100644 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -1,6 +1,6 @@