mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix possible vuln at search_lotw_unconfirmed
This commit is contained in:
@@ -1028,6 +1028,7 @@ class Logbook extends CI_Controller {
|
||||
|
||||
if (!is_numeric($clean_station_id) && $clean_station_id !== 'All') {
|
||||
show_404();
|
||||
return;
|
||||
}
|
||||
|
||||
$this->load->model('user_model');
|
||||
@@ -1054,8 +1055,8 @@ class Logbook extends CI_Controller {
|
||||
join lotw_users on ' . $this->config->item('table_name') . '.col_call = lotw_users.callsign
|
||||
where ' . $this->config->item('table_name') .'.station_id in ('. $location_list . ')';
|
||||
|
||||
if ($station_id != 'All') {
|
||||
$sql .= ' and station_profile.station_id = ' . $station_id;
|
||||
if ($clean_station_id != 'All') {
|
||||
$sql .= ' and station_profile.station_id = ' . $clean_station_id;
|
||||
}
|
||||
|
||||
$sql .= " and COL_LOTW_QSL_RCVD <> 'Y' and " . $this->config->item('table_name') . ".COL_TIME_ON < lotw_users.lastupload";
|
||||
|
||||
Reference in New Issue
Block a user