mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-03-06 14:35:27 +01:00
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:
@@ -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);
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user