[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] cvs: php-src(PHP_4_3) /ext/standard url.c
From:       "Sara Golemon" <pollita () php ! net>
Date:       2004-04-27 19:28:21
Message-ID: cvspollita1083094101 () cvsserver
[Download RAW message or body]

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);

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic