From f722e1cd08f050844d524482abc2c59e77ec0138 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 8 Oct 2025 05:10:05 +0000 Subject: [PATCH] Added buildquery for Users who put specialchars in their creds --- application/models/Clublog_model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/application/models/Clublog_model.php b/application/models/Clublog_model.php index f8cd0c7c4..181ece779 100644 --- a/application/models/Clublog_model.php +++ b/application/models/Clublog_model.php @@ -180,7 +180,14 @@ class Clublog_model extends CI_Model foreach ($station_profiles->result() as $station_row) { $lastrec = $clublog_last_date ?? $this->clublog_last_qsl_rcvd_date($station_row->station_callsign); $lastrec = str_replace('-', '', $lastrec); - $url = 'https://clublog.org/getmatches.php?api=' . $this->clublog_identifier . '&email=' . $clean_username . '&password=' . $clean_password . '&callsign=' . $station_row->station_callsign . '&startyear=' . substr($lastrec, 0, 4) . '&startmonth=' . substr($lastrec, 4, 2) . '&startday=' . substr($lastrec, 6, 2); + $url_params=['api' => $this->clublog_identifier, + 'email' => $clean_username, + 'password' => $clean_password, + 'callsign' => trim($station_row->station_callsign), + 'startyear' => substr($lastrec, 0, 4), + 'startmonth' => substr($lastrec, 4, 2), + 'startday' => substr($lastrec, 6, 2)]; + $url = 'https://clublog.org/getmatches.php?' . http_build_query($url_params); $request = curl_init($url); // recieve a file