diff -ur wpsvn/trunk/wp-admin/includes/class-ftp.php wpsvn_patched/trunk/wp-admin/includes/class-ftp.php
|
old
|
new
|
|
| 380 | 380 | function pwd() { |
| 381 | 381 | if(!$this->_exec("PWD", "pwd")) return FALSE; |
| 382 | 382 | if(!$this->_checkCode()) return FALSE; |
| 383 | | return ereg_replace("^[0-9]{3} \"(.+)\".+", "\\1", $this->_message); |
| | 383 | return mb_ereg_replace("^[0-9]{3} \"(.+)\".+", "\\1", $this->_message); |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | function cdup() { |
| … |
… |
|
| 424 | 424 | } |
| 425 | 425 | if(!$this->_exec("SIZE ".$pathname, "filesize")) return FALSE; |
| 426 | 426 | if(!$this->_checkCode()) return FALSE; |
| 427 | | return ereg_replace("^[0-9]{3} ([0-9]+)".CRLF, "\\1", $this->_message); |
| | 427 | return mb_ereg_replace("^[0-9]{3} ([0-9]+)".CRLF, "\\1", $this->_message); |
| 428 | 428 | } |
| 429 | 429 | |
| 430 | 430 | function abort() { |
| … |
… |
|
| 444 | 444 | } |
| 445 | 445 | if(!$this->_exec("MDTM ".$pathname, "mdtm")) return FALSE; |
| 446 | 446 | if(!$this->_checkCode()) return FALSE; |
| 447 | | $mdtm = ereg_replace("^[0-9]{3} ([0-9]+)".CRLF, "\\1", $this->_message); |
| | 447 | $mdtm = mb_ereg_replace("^[0-9]{3} ([0-9]+)".CRLF, "\\1", $this->_message); |
| 448 | 448 | $date = sscanf($mdtm, "%4d%2d%2d%2d%2d%2d"); |
| 449 | 449 | $timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]); |
| 450 | 450 | return $timestamp; |
| … |
… |
|
| 818 | 818 | function glob_regexp($pattern,$probe) { |
| 819 | 819 | $sensitive=(PHP_OS!='WIN32'); |
| 820 | 820 | return ($sensitive? |
| 821 | | ereg($pattern,$probe): |
| 822 | | eregi($pattern,$probe) |
| | 821 | mb_ereg($pattern,$probe): |
| | 822 | mb_eregi($pattern,$probe) |
| 823 | 823 | ); |
| 824 | 824 | } |
| 825 | 825 | |
diff -ur wpsvn/trunk/wp-admin/includes/class-ftp-pure.php wpsvn_patched/trunk/wp-admin/includes/class-ftp-pure.php
|
old
|
new
|
|
| 110 | 110 | $this->_data_close(); |
| 111 | 111 | return FALSE; |
| 112 | 112 | } |
| 113 | | $ip_port = explode(",", ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message)); |
| | 113 | $ip_port = explode(",", mb_ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message)); |
| 114 | 114 | $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; |
| 115 | 115 | $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); |
| 116 | 116 | $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); |
diff -ur wpsvn/trunk/wp-admin/includes/class-ftp-sockets.php wpsvn_patched/trunk/wp-admin/includes/class-ftp-sockets.php
|
old
|
new
|
|
| 131 | 131 | $this->_data_close(); |
| 132 | 132 | return FALSE; |
| 133 | 133 | } |
| 134 | | $ip_port = explode(",", ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message)); |
| | 134 | $ip_port = explode(",", mb_ereg_replace("^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*".CRLF."$", "\\1", $this->_message)); |
| 135 | 135 | $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; |
| 136 | 136 | $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]); |
| 137 | 137 | $this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport); |
diff -ur wpsvn/trunk/wp-includes/class-phpmailer.php wpsvn_patched/trunk/wp-includes/class-phpmailer.php
|
old
|
new
|
|
| 589 | 589 | /* Retry while there is no connection */ |
| 590 | 590 | while($index < count($hosts) && $connection == false) { |
| 591 | 591 | $hostinfo = array(); |
| 592 | | if(eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) { |
| | 592 | if(mb_eregi('^(.+):([0-9]+)$', $hosts[$index], $hostinfo)) { |
| 593 | 593 | $host = $hostinfo[1]; |
| 594 | 594 | $port = $hostinfo[2]; |
| 595 | 595 | } else { |
diff -ur wpsvn/trunk/wp-includes/class-pop3.php wpsvn_patched/trunk/wp-includes/class-pop3.php
|
old
|
new
|
|
| 252 | 252 | $MsgArray = array(); |
| 253 | 253 | |
| 254 | 254 | $line = fgets($fp,$buffer); |
| 255 | | while ( !ereg("^\.\r\n",$line)) |
| | 255 | while ( !mb_ereg("^\.\r\n",$line)) |
| 256 | 256 | { |
| 257 | 257 | $MsgArray[$count] = $line; |
| 258 | 258 | $count++; |
| … |
… |
|
| 319 | 319 | if($msgC > $Total) { break; } |
| 320 | 320 | $line = fgets($fp,$this->BUFFER); |
| 321 | 321 | $line = $this->strip_clf($line); |
| 322 | | if(ereg("^\.",$line)) |
| | 322 | if(@mb_ereg("^\.",$line)) |
| 323 | 323 | { |
| 324 | 324 | $this->ERROR = "POP3 pop_list: " . _("Premature end of list"); |
| 325 | 325 | return false; |
| … |
… |
|
| 365 | 365 | $MsgArray = array(); |
| 366 | 366 | |
| 367 | 367 | $line = fgets($fp,$buffer); |
| 368 | | while ( !ereg("^\.\r\n",$line)) |
| | 368 | while ( !mb_ereg("^\.\r\n",$line)) |
| 369 | 369 | { |
| 370 | 370 | if ( $line[0] == '.' ) { $line = substr($line,1); } |
| 371 | 371 | $MsgArray[$count] = $line; |
| … |
… |
|
| 553 | 553 | $line = ""; |
| 554 | 554 | $count = 1; |
| 555 | 555 | $line = fgets($fp,$buffer); |
| 556 | | while ( !ereg("^\.\r\n",$line)) { |
| 557 | | if(ereg("^\.\r\n",$line)) { |
| | 556 | while ( !mb_ereg("^\.\r\n",$line)) { |
| | 557 | if(mb_ereg("^\.\r\n",$line)) { |
| 558 | 558 | break; |
| 559 | 559 | } |
| 560 | 560 | list ($msg,$msgUidl) = preg_split('/\s+/',$line); |
| … |
… |
|
| 606 | 606 | if( empty($cmd) ) |
| 607 | 607 | return false; |
| 608 | 608 | else |
| 609 | | return( ereg ("^\+OK", $cmd ) ); |
| | 609 | return( mb_ereg ("^\+OK", $cmd ) ); |
| 610 | 610 | } |
| 611 | 611 | |
| 612 | 612 | function strip_clf ($text = "") { |
diff -ur wpsvn/trunk/wp-settings.php wpsvn_patched/trunk/wp-settings.php
|
old
|
new
|
|
| 23 | 23 | // Set initial default constants including WP_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE. |
| 24 | 24 | wp_initial_constants( ); |
| 25 | 25 | |
| 26 | | // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php. |
| 27 | | set_magic_quotes_runtime( 0 ); |
| | 26 | // disable magic quotes depending on PHP version |
| | 27 | if (strpos($_SERVER['SERVER_SOFTWARE'], 'PHP/5.3') !== false) { |
| | 28 | if(get_magic_quotes_runtime()) { |
| | 29 | set_magic_quotes_runtime(false);} |
| | 30 | }else{ |
| | 31 | set_magic_quotes_runtime( 0 ); |
| | 32 | } |
| | 33 | |
| 28 | 34 | @ini_set( 'magic_quotes_sybase', 0 ); |
| 29 | 35 | |
| 30 | 36 | // Set default timezone in PHP 5. |