소스 검색

Replaced preg_match with ereg (speed)

Tyler Akins 24 년 전
부모
커밋
de7069a67c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      functions/imap_general.php

+ 1 - 1
functions/imap_general.php

@@ -16,7 +16,7 @@
       global $color, $squirrelmail_language, $imap_general_debug;
 
       $read = fgets($imap_stream, 9096);
-      if (preg_match ("/^\* [0-9]+ FETCH.*{([0-9]+)}/", $read, $regs)) {
+      if (ereg("^\* [0-9]+ FETCH.*{([0-9]+)}", $read, $regs)) {
          $size = $regs[1];
       }