You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Perform a regex match all on the raw header and return the first result * @param $pattern * * @return mixed|null */publicfunctionfind($pattern): mixed {
if (preg_match_all($pattern, $this->raw, $matches)) {
if (isset($matches[1])) {
if (count($matches[1]) > 0) {
//return $matches[1][0];$maxLength = 0;
$item = '';
foreach ($matches[1] as$match) {
if (strlen($match) > $maxLength) {
$maxLength = strlen($match);
$item = $match;
}
}
return$item;
}
}
}
returnnull;
}
The text was updated successfully, but these errors were encountered:
Describe the bug
This email should have attachments.
Code to Reproduce
I "Fixed" modifying the find function in src/Header.php
The text was updated successfully, but these errors were encountered: