Improve error handling

This commit is contained in:
Steven Sullivan 2024-01-21 12:15:09 -05:00 committed by GitHub
parent 6154d87a89
commit 3970c082f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -35,6 +35,8 @@ class easy_unsubscribe extends rcube_plugin {
if($this->message_headers_done===false) {
$this->message_headers_done = true;
if(!isset($p['headers']->others['list-unsubscribe'])) return $p;
$ListUnsubscribe = $p['headers']->others['list-unsubscribe'];
if (preg_match_all('/<(.+)>/mU', $ListUnsubscribe, $items, PREG_PATTERN_ORDER)) {