mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-10-30 17:23:53 +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:
		| @@ -17370,3 +17370,5 @@ | ||||
| 2018-08-11 Fred Gleason <fredg@paravelsystems.com> | ||||
| 	* Removed SysV-style init scripts. | ||||
| 	* Removed sysconfig support. | ||||
| 2018-08-11 Fred Gleason <fredg@paravelsystems.com> | ||||
| 	* Added a debug block for saving raw post data to 'RDFormPost'. | ||||
|   | ||||
| @@ -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