mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:00:13 +01:00
boundary parser fix in the binaries
This commit is contained in:
parent
1fde346eb9
commit
ccf4d72dd2
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#define VERSION "1.1.0-rc4"
|
#define VERSION "1.1.0-rc4"
|
||||||
|
|
||||||
#define BUILD 882
|
#define BUILD 883
|
||||||
|
|
||||||
#define HOSTID "mailarchiver"
|
#define HOSTID "mailarchiver"
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ int isHexNumber(char *p){
|
|||||||
|
|
||||||
|
|
||||||
int extract_boundary(char *p, struct _state *state){
|
int extract_boundary(char *p, struct _state *state){
|
||||||
char *q;
|
char *q, *q2;
|
||||||
|
|
||||||
p += strlen("boundary");
|
p += strlen("boundary");
|
||||||
|
|
||||||
@ -301,6 +301,10 @@ int extract_boundary(char *p, struct _state *state){
|
|||||||
if(isspace(*p) == 0)
|
if(isspace(*p) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
q2 = strchr(p, ';');
|
||||||
|
if(q2) *q2 = '\0';
|
||||||
|
|
||||||
q = strrchr(p, '"');
|
q = strrchr(p, '"');
|
||||||
if(q) *q = '\0';
|
if(q) *q = '\0';
|
||||||
|
|
||||||
@ -312,6 +316,8 @@ int extract_boundary(char *p, struct _state *state){
|
|||||||
|
|
||||||
addnode(state->boundaries, p);
|
addnode(state->boundaries, p);
|
||||||
|
|
||||||
|
if(q2) *q2 = ';';
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user