(fix) protect ourself from broken SOPE/SOGo installs (fixes #4117)

This commit is contained in:
Ludovic Marcotte
2017-04-06 11:02:59 -04:00
parent 8ff189229b
commit f83d6a20a1

View File

@@ -364,9 +364,12 @@
// It does not, let's search in the entire headers
if (r1.location == NSNotFound)
r1 = [cleaned_message rangeOfCString: "\r\nBcc: "
options: 0
range: NSMakeRange(0,limit)];
{
r1 = [cleaned_message rangeOfCString: "\r\nBcc: "
options: 0
range: NSMakeRange(0,limit)];
r1.location += 2;
}
if (r1.location != NSNotFound)
{