mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2018-08-11 Fred Gleason <fredg@paravelsystems.com>
* Added a debug block for saving raw post data to 'RDFormPost'.
This commit is contained in:
@@ -510,6 +510,24 @@ void RDFormPost::LoadMultipartEncoding(char first)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Uncomment to save raw post to disc
|
||||
*
|
||||
FILE *f;
|
||||
if((f=fopen("/var/snd/post.dat","w"))!=NULL) {
|
||||
char data[1025];
|
||||
int n;
|
||||
|
||||
while((n=fread(data,1,1024,post_stream))>0) {
|
||||
fwrite(data,1,n,f);
|
||||
}
|
||||
fclose(f);
|
||||
printf("Content-type: text/html\n\n");
|
||||
printf("Raw post written to \"/var/snd/post.dat\"\n");
|
||||
exit(0);
|
||||
}
|
||||
*/
|
||||
|
||||
//
|
||||
// Get Separator Line
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user