Browse Source

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.

mattphillips 25 years ago
parent
commit
25a486951e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      functions/strings.php

+ 4 - 4
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;
    }