mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Apply xss_clean only if value is defined and not ""
This commit is contained in:
@@ -572,32 +572,32 @@ class Stationsetup extends CI_Controller {
|
||||
// Data for station_profile
|
||||
$dbdata = [
|
||||
'station_active' => 0,
|
||||
'station_profile_name' => xss_clean($loc['station_profile_name'] ?? null),
|
||||
'station_gridsquare' => xss_clean($loc['station_gridsquare'] ?? null),
|
||||
'station_city' => xss_clean($loc['station_city'] ?? null),
|
||||
'station_iota' => xss_clean($loc['station_iota'] ?? null),
|
||||
'station_sota' => xss_clean($loc['station_sota'] ?? null),
|
||||
'station_callsign' => xss_clean($loc['station_callsign'] ?? null),
|
||||
'station_power' => xss_clean($loc['station_power'] ?? null),
|
||||
'station_dxcc' => xss_clean($loc['station_dxcc'] ?? null),
|
||||
'station_cq' => xss_clean($loc['station_cq'] ?? null),
|
||||
'station_itu' => xss_clean($loc['station_itu'] ?? null),
|
||||
'station_sig' => xss_clean($loc['station_sig'] ?? null),
|
||||
'station_sig_info' => xss_clean($loc['station_sig_info'] ?? null),
|
||||
'station_wwff' => xss_clean($loc['station_wwff'] ?? null),
|
||||
'station_pota' => xss_clean($loc['station_pota'] ?? null),
|
||||
'state' => xss_clean($loc['state'] ?? null),
|
||||
'station_cnty' => xss_clean($loc['station_cnty'] ?? null),
|
||||
'qrzrealtime' => xss_clean($loc['qrzrealtime'] ?? 0),
|
||||
'oqrs' => xss_clean($loc['oqrs'] ?? 0),
|
||||
'oqrs_text' => xss_clean($loc['oqrs_text'] ?? null),
|
||||
'oqrs_email' => xss_clean($loc['oqrs_email'] ?? null),
|
||||
'webadifrealtime' => xss_clean($loc['webadifrealtime'] ?? null),
|
||||
'clublogignore' => xss_clean($loc['clublogignore'] ?? 1),
|
||||
'clublogrealtime' => xss_clean($loc['clublogrealtime'] ?? 0),
|
||||
'hrdlogrealtime' => xss_clean($loc['hrdlogrealtime'] ?? 0),
|
||||
'hrdlog_username' => xss_clean($loc['hrdlog_username'] ?? null),
|
||||
'eqslqthnickname' => xss_clean($loc['eqslqthnickname'] ?? null),
|
||||
'station_profile_name' => ((isset($loc['station_profile_name']) && $loc['station_profile_name'] != "") ? xss_clean($loc['station_profile_name']) : null),
|
||||
'station_gridsquare' => ((isset($loc['station_gridsquare']) && $loc['station_gridsquare'] != "") ? xss_clean($loc['station_gridsquare']) : null),
|
||||
'station_city' => ((isset($loc['station_city']) && $loc['station_city'] != "") ? xss_clean($loc['station_city']) : null),
|
||||
'station_iota' => ((isset($loc['station_iota']) && $loc['station_iota'] != "") ? xss_clean($loc['station_iota']) : null),
|
||||
'station_sota' => ((isset($loc['station_sota']) && $loc['station_sota'] != "") ? xss_clean($loc['station_sota']) : null),
|
||||
'station_callsign' => ((isset($loc['station_callsign']) && $loc['station_callsign'] != "") ? xss_clean($loc['station_callsign']) : null),
|
||||
'station_power' => ((isset($loc['station_power']) && $loc['station_power'] != "") ? xss_clean($loc['station_power']) : null),
|
||||
'station_dxcc' => ((isset($loc['station_dxcc']) && $loc['station_dxcc'] != "") ? xss_clean($loc['station_dxcc']) : null),
|
||||
'station_cq' => ((isset($loc['station_cq']) && $loc['station_cq'] != "") ? xss_clean($loc['station_cq']) : null),
|
||||
'station_itu' => ((isset($loc['station_itu']) && $loc['station_itu'] != "") ? xss_clean($loc['station_itu']) : null),
|
||||
'station_sig' => ((isset($loc['station_sig']) && $loc['station_sig'] != "") ? xss_clean($loc['station_sig']) : null),
|
||||
'station_sig_info' => ((isset($loc['station_sig_info']) && $loc['station_sig_info'] != "") ? xss_clean($loc['station_sig_info']) : null),
|
||||
'station_wwff' => ((isset($loc['station_wwff']) && $loc['station_wwff'] != "") ? xss_clean($loc['station_wwff']) : null),
|
||||
'station_pota' => ((isset($loc['station_pota']) && $loc['station_pota'] != "") ? xss_clean($loc['station_pota']) : null),
|
||||
'state' => ((isset($loc['state']) && $loc['state'] != "") ? xss_clean($loc['state']) : null),
|
||||
'station_cnty' => ((isset($loc['station_cnty']) && $loc['station_cnty'] != "") ? xss_clean($loc['station_cnty']) : null),
|
||||
'qrzrealtime' => ((isset($loc['qrzrealtime']) && $loc['qrzrealtime'] != "") ? xss_clean($loc['qrzrealtime']) : 0),
|
||||
'oqrs' => ((isset($loc['oqrs']) && $loc['oqrs'] != "") ? xss_clean($loc['oqrs']) : 0),
|
||||
'oqrs_text' => ((isset($loc['oqrs_text']) && $loc['oqrs_text'] != "") ? xss_clean($loc['oqrs_text']) : null),
|
||||
'oqrs_email' => ((isset($loc['oqrs_email']) && $loc['oqrs_email'] != "") ? xss_clean($loc['oqrs_email']) : null),
|
||||
'webadifrealtime' => ((isset($loc['webadifrealtime']) && $loc['webadifrealtime'] != "") ? xss_clean($loc['webadifrealtime']) : null),
|
||||
'clublogignore' => ((isset($loc['clublogignore']) && $loc['clublogignore'] != "") ? xss_clean($loc['clublogignore']) : 1),
|
||||
'clublogrealtime' => ((isset($loc['clublogrealtime']) && $loc['clublogrealtime'] != "") ? xss_clean($loc['clublogrealtime']) : 0),
|
||||
'hrdlogrealtime' => ((isset($loc['hrdlogrealtime']) && $loc['hrdlogrealtime'] != "") ? xss_clean($loc['hrdlogrealtime']) : 0),
|
||||
'hrdlog_username' => ((isset($loc['hrdlog_username']) && $loc['hrdlog_username'] != "") ? xss_clean($loc['hrdlog_username']) : null),
|
||||
'eqslqthnickname' => ((isset($loc['eqslqthnickname']) && $loc['eqslqthnickname'] != "") ? xss_clean($loc['eqslqthnickname']) : null),
|
||||
'webadifapiurl' => 'https://qo100dx.club/api',
|
||||
'station_uuid' => xss_clean($loc['station_uuid'] ?? null),
|
||||
'user_id' => $this->session->userdata('user_id'),
|
||||
|
||||
Reference in New Issue
Block a user