2018-09-10 Fred Gleason <fredg@paravelsystems.com>

* Fixed bugs in the 'rivwebcapi' rd_savelog(7) call that caused
	log saves to fail.
This commit is contained in:
Fred Gleason
2018-09-10 09:13:15 -04:00
parent 18abbd0d0b
commit f13aa1e3ae
10 changed files with 107 additions and 38 deletions

View File

@@ -514,7 +514,9 @@ void RDFormPost::LoadMultipartEncoding(char first)
* Uncomment to save raw post to disc
*
FILE *f;
if((f=fopen("/var/snd/post.dat","w"))!=NULL) {
QString dumpfile=QString("/var/snd/post-")+
QTime::currentTime().toString("hhmmsszzz")+".dat";
if((f=fopen(dumpfile.toUtf8(),"w"))!=NULL) {
char data[1025];
int n;
@@ -523,7 +525,7 @@ void RDFormPost::LoadMultipartEncoding(char first)
}
fclose(f);
printf("Content-type: text/html\n\n");
printf("Raw post written to \"/var/snd/post.dat\"\n");
printf("Raw post written to \"%s\"\n",(const char *)dumpfile.toUtf8());
exit(0);
}
*/