jenkins-bot has submitted this change and it was merged.
Change subject: Fix regex fucntions after change
I0f9b098982adf023347e3f1343f1e16ccec91df1
......................................................................
Fix regex fucntions after change I0f9b098982adf023347e3f1343f1e16ccec91df1
The tests pass now
Change-Id: Ibb15562c9a928298f0a73261305054711cd6d714
---
M includes/ProcessBounceWithRegex.php
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/ProcessBounceWithRegex.php
b/includes/ProcessBounceWithRegex.php
index ba7e3f6..779621c 100644
--- a/includes/ProcessBounceWithRegex.php
+++ b/includes/ProcessBounceWithRegex.php
@@ -40,6 +40,10 @@
if ( preg_match( "/^X-Failed-Recipients: (.*)/",
$emailLine, $failureMatch ) ) {
$emailHeaders[ 'x-failed-recipients' ] =
$failureMatch[1];
}
+ if ( trim( $emailLine ) == "" ) {
+ // Empty line denotes that the header part is
finished
+ break;
+ }
}
return $emailHeaders;
}
--
To view, visit https://gerrit.wikimedia.org/r/153041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibb15562c9a928298f0a73261305054711cd6d714
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BounceHandler
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits