XSS Clean inputs on Station controller and model

This commit is contained in:
Peter Goodhall
2019-10-05 19:16:05 +01:00
parent 23e6dd66e1
commit f22b811e79
3 changed files with 50 additions and 32 deletions

View File

@@ -63,7 +63,9 @@ class Station extends CI_Controller {
$this->load->model('stations');
$this->load->model('dxcc');
$station_profile_query = $this->stations->profile($id);
$item_id_clean = $this->security->xss_clean($id);
$station_profile_query = $this->stations->profile($item_id_clean);
$data['my_station_profile'] = $station_profile_query->row();
@@ -83,7 +85,7 @@ class Station extends CI_Controller {
{
$this->stations->edit();
$data['notice'] = "Station Profile ".$this->input->post('station_profile_name')." Updated";
$data['notice'] = "Station Profile ".$this->security->xss_clean($this->input->post('station_profile_name', true))." Updated";
redirect('station');
}