소스 검색

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 년 전
부모
커밋
25a486951e
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  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;
    }