cvs: php-src(PHP_4_3) /ext/standard url.c
| From: | Sara Golemon | Date: | Tue, 27 Apr 2004 19:28:21 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/standard url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27207@lists.php.net to get a copy of this message | ||
pollita Tue Apr 27 15:28:21 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/ext/standard url.c
Log:
MFH 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.58.2.13&r2=1.58.2.14&ty=u
Index: php-src/ext/standard/url.c
diff -u php-src/ext/standard/url.c:1.58.2.13 php-src/ext/standard/url.c:1.58.2.14
--- php-src/ext/standard/url.c:1.58.2.13 Tue Apr 27 15:21:36 2004
+++ php-src/ext/standard/url.c Tue Apr 27 15:28:21 2004
@@ -15,7 +15,7 @@
| Author: Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.58.2.13 2004/04/27 19:21:36 pollita Exp $ */
+/* $Id: url.c,v 1.58.2.14 2004/04/27 19:28:21 pollita Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -225,11 +225,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);