mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
XSS Clean inputs on Station controller and model
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user