sesser Sat Oct 12 04:16:21 2002 EDT
Modified files:
/php4/ext/standard url.c
Log:
I already said that this construct was wrong...
most probably fixes bug #19876
Index: php4/ext/standard/url.c
diff -u php4/ext/standard/url.c:1.53 php4/ext/standard/url.c:1.54
--- php4/ext/standard/url.c:1.53 Sun Oct 6 12:14:42 2002
+++ php4/ext/standard/url.c Sat Oct 12 04:16:20 2002
@@ -15,7 +15,7 @@
| Author: Jim Winstead <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.53 2002/10/06 16:14:42 iliaa Exp $ */
+/* $Id: url.c,v 1.54 2002/10/12 08:16:20 sesser Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -132,8 +132,9 @@
php_replace_controlchars(ret->user);
}
- if (p-pp > 1) {
- ret->pass = estrndup(++pp, (p-pp-1));
+ if (p-pp > 1) {
+ p++;
+ 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