diff program/steps/mail/sendmail.inc @ 11:aff04b06b685 default tip

various small fixes from upgrades to PHP and/or hangover from fix to apt-get overwrite at beginning of the year somehow
author Charlie Root
date Sun, 26 Jan 2025 13:09:03 -0500
parents 4681f974d28b
children
line wrap: on
line diff
--- a/program/steps/mail/sendmail.inc	Mon May 11 16:56:46 2020 -0400
+++ b/program/steps/mail/sendmail.inc	Sun Jan 26 13:09:03 2025 -0500
@@ -889,7 +889,7 @@
         else if (preg_match('/<*'.$email_regexp.'>*$/', $item, $matches)) {
             $address = $matches[0];
             $name    = trim(str_replace($address, '', $item));
-            if ($name[0] == '"' && $name[count($name)-1] == '"') {
+            if ($name[0] == '"' && $name[strlen($name)-1] == '"') {
                 $name = substr($name, 1, -1);
             }
             $name     = stripcslashes($name);