From 23c0e0115aabaedcb1e64fe50aa15679237b99f3 Mon Sep 17 00:00:00 2001 From: whyIsMyNameUsed <83971710+whyIsMyNameUsed@users.noreply.github.com> Date: Mon, 10 May 2021 17:59:51 +0200 Subject: [PATCH] Update Qrz.php Not all character works for the qrz-password without urlencode. --- application/libraries/Qrz.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/libraries/Qrz.php b/application/libraries/Qrz.php index dd0c995d..1359a8c9 100755 --- a/application/libraries/Qrz.php +++ b/application/libraries/Qrz.php @@ -10,7 +10,7 @@ class Qrz { // Return session key public function session($username, $password) { // URL to the XML Source - $xml_feed_url = 'http://xmldata.qrz.com/xml/current/?username='.$username.';password='.$password.';agent=cloudlog'; + $xml_feed_url = 'http://xmldata.qrz.com/xml/current/?username='.$username.';password='.urlencode($password).';agent=cloudlog'; // CURL Functions $ch = curl_init(); @@ -33,7 +33,7 @@ class Qrz { $ci = & get_instance(); // URL to the XML Source - $xml_feed_url = 'http://xmldata.qrz.com/xml/current/?username='.$username.';password='.$password.';agent=cloudlog'; + $xml_feed_url = 'http://xmldata.qrz.com/xml/current/?username='.$username.';password='.urlencode($password).';agent=cloudlog'; // CURL Functions $ch = curl_init();