Browse Source

ereg => preg

philippe_mingo 23 years ago
parent
commit
906ce3232b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/read_body.php

+ 3 - 0
src/read_body.php

@@ -150,9 +150,12 @@ function ServerMDNSupport( $read ) {
     $num = 0;
     $ret = FALSE;
     while ( !$ret && $num < count($read) ) {
+        $ret = preg_match( '/.*PERMANENTFLAGS.*(MDNSent|\\\*).*/i', $read[$num] );
+        /*
         if ( ereg('PERMANENTFLAGS', $read[$num] ) ) {
             $ret = ( ereg('mdnsent',strtolower($read[$num]) ) || ereg("\\\*", $read[$num] ) );
         }
+        */
         $num++;
     }
     return ( $ret );