From 76e6ff644da9490671c2142a042165730ea6c0ea Mon Sep 17 00:00:00 2001 From: lkehresman Date: Wed, 30 Aug 2000 13:45:30 +0000 Subject: [PATCH] improved email parsing in body of message a little bit (handles more exceptions) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@732 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/i18n.php | 2 ++ functions/url_parser.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/i18n.php b/functions/i18n.php index 0ec1dfb2..4c9d912d 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -35,6 +35,8 @@ $languages["it"]["CHARSET"] = "iso-8859-1"; $languages["cs"]["NAME"] = "Czech"; $languages["cs"]["CHARSET"] = "iso-8859-2"; + $languages["es"]["NAME"] = "Spanish"; + $languages["es"]["CHARSET"] = "iso-8859-1"; // Decodes a string to the internal encoding from the given charset function charset_decode ($charset, $string) { diff --git a/functions/url_parser.php b/functions/url_parser.php index 6d767506..29de2933 100644 --- a/functions/url_parser.php +++ b/functions/url_parser.php @@ -27,7 +27,7 @@ $body = eregi_replace ("([a-z]|[0-9]|_|\.|-)+\@([a-z]|[0-9]|_|-)+(\.([a-z]|[0-9]|_|-)+)*", "\\0", $body); } */ - $body = eregi_replace ("([a-z]|[0-9]|_|\.|-)+\@([a-z]|[0-9]|_|-)+\.(\.|[a-z]|[0-9]|_|-)+", "\\0", $body); + $body = eregi_replace ("([a-z]|[0-9]|_|\.|-)+\@([a-z]|[0-9]|_|-)+(\.([a-z]|[A-Z])|[a-z]|[0-9]|_|-)+", "\\0", $body); return $body; } -- 2.25.1