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 <[EMAIL PROTECTED]>                                  |
    +----------------------------------------------------------------------+
  */
-/* $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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to