diff --git a/application/models/Stations.php b/application/models/Stations.php index 509b1beac..a2c99d26c 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -114,7 +114,7 @@ class Stations extends CI_Model { 'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))), 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), - 'station_callsign' => xss_clean($this->input->post('station_callsign', true)), + 'station_callsign' => xss_clean(strtoupper($this->input->post('station_callsign', true))), 'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL, 'station_dxcc' => xss_clean($this->input->post('dxcc', true)), 'station_cnty' => $county, @@ -168,15 +168,15 @@ class Stations extends CI_Model { $data = array( 'station_profile_name' => xss_clean($this->input->post('station_profile_name', true)), - 'station_gridsquare' => xss_clean($this->input->post('gridsquare', true)), + 'station_gridsquare' => xss_clean(strtoupper($this->input->post('gridsquare', true))), 'station_city' => xss_clean($this->input->post('city', true)), - 'station_iota' => xss_clean($this->input->post('iota', true)), - 'station_sota' => xss_clean($this->input->post('sota', true)), - 'station_wwff' => xss_clean($this->input->post('wwff', true)), - 'station_pota' => xss_clean($this->input->post('pota', true)), - 'station_sig' => xss_clean($this->input->post('sig', true)), - 'station_sig_info' => xss_clean($this->input->post('sig_info', true)), - 'station_callsign' => xss_clean($this->input->post('station_callsign', true)), + 'station_iota' => xss_clean(strtoupper($this->input->post('iota', true))), + 'station_sota' => xss_clean(strtoupper($this->input->post('sota', true))), + 'station_wwff' => xss_clean(strtoupper($this->input->post('wwff', true))), + 'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))), + 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), + 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), + 'station_callsign' => xss_clean(strtoupper($this->input->post('station_callsign', true))), 'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL, 'station_dxcc' => xss_clean($this->input->post('dxcc', true)), 'station_cnty' => $county, diff --git a/application/views/station_profile/create.php b/application/views/station_profile/create.php index 199f83899..dcbc20fc4 100644 --- a/application/views/station_profile/create.php +++ b/application/views/station_profile/create.php @@ -62,7 +62,7 @@ if ($dxcc_list->result() > 0) {