cvs: docweb /include lib_url_entities.inc.php
[email protected] ("Vincent Gevers")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvsvincent1106599899@cvsserver> |
vincent Mon Jan 24 15:51:39 2005 EDT
Modified files:
/docweb/include lib_url_entities.inc.php
Log:
Revert this... lets hope the openldap.org team can fix there dns/servers
http://cvs.php.net/diff.php/docweb/include/lib_url_entities.inc.php?r1=1.6&r2=1.7&ty=u
Index: docweb/include/lib_url_entities.inc.php
diff -u docweb/include/lib_url_entities.inc.php:1.6 docweb/include/lib_url_entities.inc.php:1.7
--- docweb/include/lib_url_entities.inc.php:1.6 Sun Jan 23 08:54:43 2005
+++ docweb/include/lib_url_entities.inc.php Mon Jan 24 15:51:39 2005
@@ -19,7 +19,7 @@
| Mehdi Achour <[email protected]> |
| Sean Coates <[email protected]> |
+----------------------------------------------------------------------+
-$Id: lib_url_entities.inc.php,v 1.6 2005/01/23 13:54:43 vincent Exp $
+$Id: lib_url_entities.inc.php,v 1.7 2005/01/24 20:51:39 vincent Exp $
*/
// user agent
@@ -145,8 +145,7 @@
}
// Try to find host
- $url['ip'] = gethostbyname($url['host']);
- if ($url['ip'] == $url['host']) {
+ if (gethostbyname($url['host']) == $url['host']) {
return array(UNKNOWN_HOST, array($num));
}
@@ -221,7 +220,7 @@
break;
case 'ftp':
- if ($ftp = ftp_connect($url['ip'])) {
+ if ($ftp = @ftp_connect($url['host'])) {
if (@ftp_login($ftp, 'anonymous', 'IEUser@')) {
$flist = ftp_nlist($ftp, $url['path']);