iliaa Mon Jul 21 09:36:23 2003 EDT
Modified files:
/php-src/ext/standard url.c
Log:
Fixed bug #24560 (parse_url() incorrectly handling certain file:// based
schemas).
Index: php-src/ext/standard/url.c
diff -u php-src/ext/standard/url.c:1.66 php-src/ext/standard/url.c:1.67
--- php-src/ext/standard/url.c:1.66 Tue Jun 10 16:03:38 2003
+++ php-src/ext/standard/url.c Mon Jul 21 09:36:23 2003
@@ -15,7 +15,7 @@
| Author: Jim Winstead <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.66 2003/06/10 20:03:38 imajes Exp $ */
+/* $Id: url.c,v 1.67 2003/07/21 13:36:23 iliaa Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -125,7 +125,9 @@
if (*(e+2) == '/') {
s = e + 3;
if (!strncasecmp("file", ret->scheme, sizeof("file")))
{
- goto nohost;
+ if (*(e + 3) == '/') {
+ goto nohost;
+ }
}
} else {
s = e + 1;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php