wp/wp-includes/class-pop3.php
changeset 16 a86126ab1dd4
parent 7 cf61fcea0001
child 21 48c4eec2b7e6
--- a/wp/wp-includes/class-pop3.php	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/class-pop3.php	Tue Dec 15 13:49:49 2020 +0100
@@ -59,8 +59,7 @@
         if(!empty($timeout)) {
             settype($timeout,"integer");
             $this->TIMEOUT = $timeout;
-            if (!ini_get('safe_mode'))
-                set_time_limit($timeout);
+            set_time_limit($timeout);
         }
         return true;
     }
@@ -73,8 +72,7 @@
 	}
 
     function update_timer () {
-        if (!ini_get('safe_mode'))
-            set_time_limit($this->TIMEOUT);
+        set_time_limit($this->TIMEOUT);
         return true;
     }
 
@@ -376,7 +374,7 @@
         $line = fgets($fp,$buffer);
         while ( !preg_match('/^\.\r\n/',$line))
         {
-            if ( $line{0} == '.' ) { $line = substr($line,1); }
+            if ( $line[0] == '.' ) { $line = substr($line,1); }
             $MsgArray[$count] = $line;
             $count++;
             $line = fgets($fp,$buffer);