瀏覽代碼

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 = ereg_replace( '"[^"]*"', "", $text);
       $text = str_replace(",", ";", $text);
       $text = str_replace(",", ";", $text);
       $array = explode(";", $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;
       return $array;
    }
    }