boundary parser fix in the binaries

This commit is contained in:
SJ 2014-08-13 15:09:24 +02:00
parent 1fde346eb9
commit ccf4d72dd2
2 changed files with 8 additions and 2 deletions

View File

@ -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"

View File

@ -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;
} }