From 656ff24744e095a6bfc2b3fc8d9bdff5fd4e26ed Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 7 Jun 2021 17:48:27 +0100 Subject: [PATCH] [HamQTH] Fixes issue where certain passwords don't work. --- application/libraries/Hamqth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/libraries/Hamqth.php b/application/libraries/Hamqth.php index 69b49aadd..ff10e1e8d 100644 --- a/application/libraries/Hamqth.php +++ b/application/libraries/Hamqth.php @@ -10,7 +10,7 @@ class Hamqth { // Return session key public function session($username, $password) { // URL to the XML Source - $xml_feed_url = 'https://www.hamqth.com/xml.php?u='.$username.'&p='.$password; + $xml_feed_url = 'https://www.hamqth.com/xml.php?u='.$username.'&p='.urlencode($password); // CURL Functions $ch = curl_init(); @@ -33,7 +33,7 @@ class Hamqth { $ci = & get_instance(); // URL to the XML Source - $xml_feed_url = 'https://www.hamqth.com/xml.php?u='.$username.'&p='.$password; + $xml_feed_url = 'https://www.hamqth.com/xml.php?u='.$username.'&p='.urlencode($password); // CURL Functions $ch = curl_init();