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

@@ -1668,9 +1668,9 @@ bool RDCart::removeCutAudio(RDStation *station,RDUser *user,unsigned cart_num,
(const char *)QString().sprintf("%u",RDXPORT_COMMAND_DELETEAUDIO),
CURLFORM_END);
curl_formadd(&first,&last,CURLFORM_PTRNAME,"LOGIN_NAME",
CURLFORM_COPYCONTENTS,(const char *)user->name(),CURLFORM_END);
CURLFORM_COPYCONTENTS,(const char *)user->name().utf8(),CURLFORM_END);
curl_formadd(&first,&last,CURLFORM_PTRNAME,"PASSWORD",
CURLFORM_COPYCONTENTS,(const char *)user->password(),
CURLFORM_COPYCONTENTS,(const char *)user->password().utf8(),
CURLFORM_END);
curl_formadd(&first,&last,CURLFORM_PTRNAME,"CART_NUMBER",
CURLFORM_COPYCONTENTS,