Skip to content

Commit f29e308

Browse files
committed
now correctly suppressing Undefined offset PHP Notices on non-standard mail headers
1 parent 14e8371 commit f29e308

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);
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)