Not all character works for the qrz-password without urlencode.
pull/1028/head
whyIsMyNameUsed 2021-05-10 17:59:51 +02:00 zatwierdzone przez GitHub
rodzic 4e95924454
commit 23c0e0115a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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