From 901a2b44059db364a6813059fd9d2d43f54373fe Mon Sep 17 00:00:00 2001 From: mattphillips Date: Fri, 11 Aug 2000 12:44:59 +0000 Subject: [PATCH] Added patch number 101150 to fix the regex stuff. Should fix the bug some people were having where messages were being sent to co, etc. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@704 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index c94ffdcd..ea3ff271 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -107,10 +107,10 @@ $text = ereg_replace( '"[^"]*"', "", $text); $text = str_replace(",", ";", $text); $array = explode(";", $text); - for ($i = 0; $i < count ($array); $i++) { - $array[$i] = eregi_replace ("^.*\<", "", $array[$i]); - $array[$i] = eregi_replace ("\>.*$", "", $array[$i]); - } + for ($i = 0; $i < count ($array); $i++) { + $array[$i] = eregi_replace ("^.*[<]", "", $array[$i]); + $array[$i] = eregi_replace ("[>].*$", "", $array[$i]); + } return $array; } -- 2.25.1