Changes from branches/4.3/src/wp-admin/includes/class-ftp-pure.php at r63523 to trunk/src/wp-admin/includes/class-ftp-pure.php at r63523
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/class-ftp-pure.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-ftp-pure.php
r63523 r63523 1 1 <?php 2 2 /** 3 * PemFTP - A Ftp implementation in pure PHP3 * PemFTP - An Ftp implementation in pure PHP 4 4 * 5 5 * @package PemFTP … … 9 9 * @copyright Alexey Dotsenko 10 10 * @author Alexey Dotsenko 11 * @link http ://www.phpclasses.org/browse/package/1743.html Site12 * @license LGPL http ://www.opensource.org/licenses/lgpl-license.html11 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html 12 * @license LGPL https://opensource.org/licenses/lgpl-license.html 13 13 */ 14 14 … … 23 23 * @copyright Alexey Dotsenko 24 24 * @author Alexey Dotsenko 25 * @link http ://www.phpclasses.org/browse/package/1743.html Site26 * @license LGPL http ://www.opensource.org/licenses/lgpl-license.html25 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html 26 * @license LGPL https://opensource.org/licenses/lgpl-license.html 27 27 */ 28 class ftp extends ftp_base {28 class ftp_pure extends ftp_base { 29 29 30 30 function __construct($verb=FALSE, $le=FALSE) { 31 31 parent::__construct(false, $verb, $le); 32 }33 34 function ftp($verb=FALSE, $le=FALSE) {35 $this->__construct($verb, $le);36 32 } 37 33 … … 111 107 return FALSE; 112 108 } 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));109 $ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message)); 114 110 $this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3]; 115 111 $this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)