Subversion Repositories RepoView

Rev

Rev 39 | Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 40
Line 1... Line 1...
1
/* $Id: main.c 39 2024-08-22 03:38:21Z nishi $ */
1
/* $Id: main.c 40 2024-08-22 03:43:42Z nishi $ */
2
 
2
 
3
#include <stdio.h>
3
#include <stdio.h>
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 50... Line 50...
50
				i++;
50
				i++;
51
				bool found = false;
51
				bool found = false;
52
				rv_error_http();
52
				rv_error_http();
53
				for(; type[i] != 0; i++) {
53
				for(; type[i] != 0; i++) {
54
					if(type[i] != ' ' && type[i] != '\t') {
54
					if(type[i] != ' ' && type[i] != '\t') {
-
 
55
						int j;
55
						printf("%s\n", type + i);
56
						char* boundary = type + i;
-
 
57
						for(j = 0; boundary[j] != 0; j++){
-
 
58
							if(boundary[j] == '='){
-
 
59
								boundary[j] = 0;
-
 
60
								printf("%s\n%s\n", boundary, boundary + j + 1);
-
 
61
								found = true;
-
 
62
								break;
-
 
63
							}
-
 
64
						}
56
						break;
65
						break;
57
					}
66
					}
58
				}
67
				}
59
				if(!found) {
68
				if(!found) {
60
					printf("Bad multipart/form-data. Parsing fail.");
69
					printf("Bad multipart/form-data. Parsing fail.");