Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

header lines being folded into one?

From: Per Jessen <per(at)computer.org>
Date: Tue Oct 09 2007 - 06:58:22 EDT


I've got a rule for spotting a dodgy X-Originating-IP:

header PJ_BOGUS_XORIGIN X-Originating-IP =~ /\.([3-9][^. ][^. ]+|2[6-9][^. ]+|25[6-9][^. ]*)\./

I was investigating an unusual hit, when I noticed the following:

It will produce a positive hit when an email contains two lines like these:

X-Originating-IP: [17.148.16.66]
X-Originating-IP: 134.32.140.207

whereas there is no match if the email only contains one of those. (either one)

It looks to me like the two X-Originating-IP lines are merged into one, and my regex is then applied to:

X-Originating-IP: [17.148.16.66]134.32.140.207

Do you need help?X

Is this normal/correct behaviour?

/Per Jessen, Zürich Received on Tue Oct 9 06:59:41 2007

This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 09:41:15 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library