Merge pull request #120 from dl7oap/fix_issue114_add_url_encoding_hamqth_session_password

add url encoding for hamqth session password -fix #114
This commit is contained in:
Petr Hlozek 2018-12-03 17:52:24 +01:00 committed by GitHub
commit d8f95a4cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3648,7 +3648,7 @@ begin
http.UserName := cqrini.ReadString('Program', 'User', '');
http.Password := cqrini.ReadString('Program', 'Passwd', '');
req := 'http://www.hamqth.com/xml.php?u=' + cqrini.ReadString('CallBook', 'CBUser', '') +
'&p=' + cqrini.ReadString('CallBook', 'CBPass', '') + '&prg=cqrlog';
'&p=' + EncodeURLData(cqrini.ReadString('CallBook', 'CBPass', '')) + '&prg=cqrlog';
//Writeln(req);
if not HTTP.HTTPMethod('GET', req) then
ErrMsg := '(' + IntToStr(http.ResultCode) + '):' + http.ResultString