Skip to content

Commit 8d1e29e

Browse files
authored
Merge pull request #7 from skysky6/patch-1
Prevent truncation of IPv6 addresses
2 parents 38c1f98 + 3c2c275 commit 8d1e29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/StdinMailParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function getParsedHeaderArr()
108108
$headerLines = explode(PHP_EOL, $this->_header);
109109
$headerArr = [];
110110
foreach ($headerLines as $line) {
111-
@list($key, $value) = explode(":", $line);
111+
@list($key, $value) = explode(":", $line, 2);
112112
if (is_null($value)) {
113113
// avoid 'PHP Notice: Undefined offset: 1' on header line without colon
114114
syslog(LOG_WARNING, sprintf('%s: Could not parse mail header line: %s', __METHOD__, $line));

0 commit comments

Comments
 (0)