Commit 21b82ef5 21b82ef506c8be16a2022324cd3678a421b85a91 by Sergey Poznyakoff

Allow for certain class of broken headers.

* mailbox/mimehdr.c (_header_get_param): Tolerate unquoted value parts
which contain tspecials, except ';'.
1 parent 1a771a60
...@@ -176,7 +176,7 @@ _header_get_param (const char *field_body, ...@@ -176,7 +176,7 @@ _header_get_param (const char *field_body,
176 } 176 }
177 else 177 else
178 { 178 {
179 for (e = v + 1; !(_ISSPECIAL (*e) || mu_isspace (*e)); e++) 179 for (e = v + 1; *e && !(*e == ';' || mu_isspace (*e)); e++)
180 ; 180 ;
181 len = e - v; 181 len = e - v;
182 } 182 }
......