Ticket #11393: 11393.diff
File 11393.diff, 527 bytes (added by , 15 years ago) |
---|
-
wp-admin/includes/class-ftp.php
278 278 $dns=@gethostbyaddr($host); 279 279 if(!$ip) $ip=$host; 280 280 if(!$dns) $dns=$host; 281 if(ip2long($ip) === -1) { 281 $ip_long = ip2long($ip); 282 if ( false === $ip_long || -1 == $ip_long ) { 282 283 $this->SendMSG("Wrong host name/address \"".$host."\""); 283 284 return FALSE; 284 285 }