pollita Tue Apr 27 15:28:11 2004 EDT Modified files: /php-src/ext/standard url.c Log: Don't strip off those []s, it'll only create problems in wrappers and elsewhere. http://cvs.php.net/diff.php/php-src/ext/standard/url.c?r1=1.78&r2=1.79&ty=u Index: php-src/ext/standard/url.c diff -u php-src/ext/standard/url.c:1.78 php-src/ext/standard/url.c:1.79 --- php-src/ext/standard/url.c:1.78 Tue Apr 27 15:13:13 2004 +++ php-src/ext/standard/url.c Tue Apr 27 15:28:11 2004 @@ -15,7 +15,7 @@ | Author: Jim Winstead <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: url.c,v 1.78 2004/04/27 19:13:13 pollita Exp $ */ +/* $Id: url.c,v 1.79 2004/04/27 19:28:11 pollita Exp $ */ #include <stdlib.h> #include <string.h> @@ -231,11 +231,6 @@ p = e; } - if (*s == '[' && *(p-1) == ']') { - s++; - p--; - } - /* check if we have a valid host, if we don't reject the string as url */ if ((p-s) < 1) { STR_FREE(ret->scheme);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php