Merge pull request #1028 from whyIsMyNameUsed/patch-1

Update Qrz.php
This commit is contained in:
Peter Goodhall 2021-05-10 17:23:32 +01:00 committed by GitHub
commit 4fdd700df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();