more hard test for the get parameter

This commit is contained in:
github-actions
2024-08-06 13:04:55 +02:00
parent caf51f0131
commit acab506dcb

View File

@@ -21,7 +21,12 @@ class QSO extends CI_Controller {
// Getting the live/post mode from GET command
// 0 = live
// 1 = post (manual)
$data['manual_mode'] = $this->security->xss_clean($this->input->get('manual'));
$get_manual_mode = $this->security->xss_clean($this->input->get('manual'));
if ($get_manual_mode == '0' || $get_manual_mode == '1') {
$data['manual_mode'] = $get_manual_mode;
} else {
show_404();
}
$data['active_station_profile'] = $this->stations->find_active();