iliaa Sat Oct 12 12:09:01 2002 EDT Modified files: /php4/ext/standard url.c Log: Fixed a bug introduced by previous patch. Index: php4/ext/standard/url.c diff -u php4/ext/standard/url.c:1.54 php4/ext/standard/url.c:1.55 --- php4/ext/standard/url.c:1.54 Sat Oct 12 04:16:20 2002 +++ php4/ext/standard/url.c Sat Oct 12 12:09:01 2002 @@ -15,7 +15,7 @@ | Author: Jim Winstead <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: url.c,v 1.54 2002/10/12 08:16:20 sesser Exp $ */ +/* $Id: url.c,v 1.55 2002/10/12 16:09:01 iliaa Exp $ */ #include <stdlib.h> #include <string.h> @@ -132,8 +132,8 @@ php_replace_controlchars(ret->user); } - if (p-pp > 1) { - p++; + pp++; + if (p-pp > 0) { ret->pass = estrndup(pp, (p-pp)); php_replace_controlchars(ret->pass); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php