cvs: php4 /ext/standard url.c

From: Date: Tue, 25 Feb 2003 23:40:03 +0000
Subject: cvs: php4 /ext/standard url.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19201@lists.php.net to get a copy of this message
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 <jimw@php.net> | +----------------------------------------------------------------------+ */ -/* $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"))) {

« previous php.cvs (#19201) next »