From 2d4b015a440b6244ac64edde0b7cb3c586f1d5fb Mon Sep 17 00:00:00 2001 From: Warren Volz Date: Wed, 13 Dec 2017 00:55:49 +0000 Subject: [PATCH] urlencode lotw password and last qsl date in requests to lotw - fixes 404 errors due to un-encoded password or dates --- application/controllers/lotw.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/lotw.php b/application/controllers/lotw.php index 775e2c09..f98584da 100644 --- a/application/controllers/lotw.php +++ b/application/controllers/lotw.php @@ -126,14 +126,14 @@ class Lotw extends CI_Controller { // Build URL for LoTW report file $lotw_url .= "?"; $lotw_url .= "login=" . $data['user_lotw_name']; - $lotw_url .= "&password=" . $data['user_lotw_password']; + $lotw_url .= "&password=" . urlencode($data['user_lotw_password']); $lotw_url .= "&qso_query=1&qso_qsl='yes'"; //TODO: Option to specifiy whether we download location data from LoTW or not //$lotw_url .= "&qso_qsldetail=\"yes\"; $lotw_url .= "&qso_qslsince="; - $lotw_url .= "$lotw_last_qsl_date"; + $lotw_url .= urlencode("$lotw_last_qsl_date"); // Only pull back entries that belong to this callsign $lotw_call = $this->session->userdata('user_callsign');