mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 0afaa6a4e147484cc6d0505e8747eb62da08f626
parent ea0ca6817e92c9bea09916c050582bdaeddf6e46
Author: markseu <mark2011@mayberg.se>
Date:   Wed,  3 Apr 2024 21:45:35 +0200

Updated text for error detection

Diffstat:
Msystem/extensions/core.php | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -1470,7 +1470,7 @@ class YellowLookup { $name = preg_replace("/[^\pL\d\-\. ]/u", "", $name); $name = preg_replace("/\s+/s", " ", $name); if ($filterStrict && !preg_match("/^[\w\+\-\.\@]+$/", $email)) { - $email = "error-mail-filter"; + $email = "error-mail-address"; } $output = is_string_empty($name) ? "<$email>" : "$name <$email>"; } @@ -1493,10 +1493,10 @@ class YellowLookup { } if (!is_string_empty($matches[1]) && !preg_match("/^[\pL\d\-\. ]+$/u", $matches[1])) { $matches[1] = $matches[2] = ""; - $matches[3] = "error-mail-filter"; + $matches[3] = "error-mail-address"; } if ($filterStrict && !preg_match("/^[\w\+\-\.\@]+$/", $matches[3])) { - $matches[3] = "error-mail-filter"; + $matches[3] = "error-mail-address"; } if (substru($text, -2, 2)!=": ") $text .= ",\r\n "; $text = $this->getMimeHeader($text, $matches[1]);