cvs: php4 /ext/standard url.c
| From: | Stefan Esser | Date: | Sat, 12 Oct 2002 08:16:21 +0000 |
| Subject: | cvs: php4 /ext/standard url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14867@lists.php.net to get a copy of this message | ||
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 <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $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);
}
}