2017-02-28 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in 'lib/rdformpost.cpp'.
This commit is contained in:
Fred Gleason
2017-02-28 12:04:27 -05:00
parent 7d343bd6ac
commit 839aa239c8
2 changed files with 5 additions and 3 deletions

View File

@@ -15610,3 +15610,5 @@
2017-02-26 Fred Gleason <fredg@paravelsystems.com>
* Modified 'ripcd/livewire_mcastgpio.cpp' to double-signal GPIO
events.
2017-02-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'lib/rdformpost.cpp'.

View File

@@ -559,14 +559,14 @@ void RDFormPost::LoadMultipartEncoding(char first)
}
else { // Read data
if(filename.isEmpty()) {
QString str=post_values.at(name).toString();
QString str=post_values[name].toString();
str+=QString(data);
post_filenames[name]=false;
post_values.at(name)=str.simplifyWhiteSpace();
post_values[name]=str.simplifyWhiteSpace();
}
else {
post_filenames[name]=true;
post_values.at(name)=filename;
post_values[name]=filename;
write(fd,data,n);
}
}