iliaa Tue Feb 25 18:40:03 2003 EDT Modified files: /php4/ext/standard url.c Log: MFH (forgot to put this fix into the 5.X tree). Index: php4/ext/standard/url.c diff -u php4/ext/standard/url.c:1.63 php4/ext/standard/url.c:1.64 --- php4/ext/standard/url.c:1.63 Fri Feb 7 16:33:35 2003 +++ php4/ext/standard/url.c Tue Feb 25 18:39:57 2003 @@ -15,7 +15,7 @@ | Author: Jim Winstead <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: url.c,v 1.63 2003/02/07 21:33:35 iliaa Exp $ */ +/* $Id: url.c,v 1.64 2003/02/25 23:39:57 iliaa Exp $ */ #include <stdlib.h> #include <string.h> @@ -124,6 +124,9 @@ if (*(e+2) == '/') { s = e + 3; + if (!strncasecmp("file", ret->scheme, sizeof("file"))) { + goto nohost; + } } else { s = e + 1; if (!strncasecmp("file", ret->scheme, sizeof("file"))) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php