2018-07-30 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDAudioExport', 'RDAudioImport',
	'RDAudioStore', 'RDCart', 'RDCopyAudio', 'RDPeakExport',
	'RDRehash', and 'RDTrimAudio' that caused credentials encoded in
	UTF-8 to be corrupted.
This commit is contained in:
Fred Gleason
2018-07-30 14:47:40 -04:00
parent 9769324828
commit ad639bc79e
10 changed files with 24 additions and 19 deletions

View File

@@ -147,9 +147,9 @@ RDAudioExport::ErrorCode RDAudioExport::runExport(const QString &username,
(const char *)QString().sprintf("%u",RDXPORT_COMMAND_EXPORT),
CURLFORM_END);
curl_formadd(&first,&last,CURLFORM_PTRNAME,"LOGIN_NAME",
CURLFORM_COPYCONTENTS,(const char *)username,CURLFORM_END);
CURLFORM_COPYCONTENTS,(const char *)username.utf8(),CURLFORM_END);
curl_formadd(&first,&last,CURLFORM_PTRNAME,"PASSWORD",
CURLFORM_COPYCONTENTS,(const char *)password,CURLFORM_END);
CURLFORM_COPYCONTENTS,(const char *)password.utf8(),CURLFORM_END);
curl_formadd(&first,&last,CURLFORM_PTRNAME,"CART_NUMBER",
CURLFORM_COPYCONTENTS,
(const char *)QString().sprintf("%u",conv_cart_number),