ossp-pkg/lmtp2nntp/msg.c 1.19 -> 1.20
--- msg.c 2001/11/14 14:22:25 1.19
+++ msg.c 2001/11/14 14:25:47 1.20
@@ -158,7 +158,7 @@
}
log0(msg, DEBUG, "split header lines into names and values");
- while (str_parse(cpHeaders, "m/^([\\w-]+?:)[ \\t]*([^\\n]*?)[ \\t]*\\n(.*)/s", &cpName, &cpValue, &cpRem) > 0) {
+ while (str_parse(cpHeaders, "m/^[> \\t]*([\\x21-\\x7e]+?:)[ \\t]*([^\\n]*?)[ \\t]*\\n(.*)/s", &cpName, &cpValue, &cpRem) > 0) {
free(cpHeaders);
cpHeaders = cpRem;
argz_add(&msg->azHeaders, &msg->asHeaders, cpName);
|
|