cvs: php4 /main rfc1867.c
| From: | Moriyoshi Koizumi | Date: | Thu, 24 Oct 2002 02:56:28 +0000 |
| Subject: | cvs: php4 /main rfc1867.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15260@lists.php.net to get a copy of this message | ||
moriyoshi Wed Oct 23 22:56:28 2002 EDT
Modified files:
/php4/main rfc1867.c
Log:
MFH; we would see a nasty problem again if it was not fixed...
Index: php4/main/rfc1867.c
diff -u php4/main/rfc1867.c:1.120 php4/main/rfc1867.c:1.121
--- php4/main/rfc1867.c:1.120 Wed Oct 23 19:25:27 2002
+++ php4/main/rfc1867.c Wed Oct 23 22:56:28 2002
@@ -16,7 +16,7 @@
| Jani Taskinen <sniper@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: rfc1867.c,v 1.120 2002/10/23 23:25:27 moriyoshi Exp $ */
+/* $Id: rfc1867.c,v 1.121 2002/10/24 02:56:28 moriyoshi Exp $ */
/*
* This product includes software developed by the Apache Group
@@ -510,13 +510,15 @@
if (start[i] == '\\' && (start[i + 1] == '\\' || (quote &&
start[i + 1] == quote))) {
*resp++ = start[++i];
} else {
- *resp++ = start[i];
#if HAVE_MBSTRING && !defined(COMPILE_DL_MBSTRING)
if (php_mb_encoding_translation(TSRMLS_C)) {
size_t j = php_mb_mbchar_bytes(start+i TSRMLS_CC);
while (j-- > 0) {
- *resp++ = start[++i];
+ *resp++ = start[i++];
}
+ --i;
+ } else {
+ *resp++ = start[i];
}
#endif
}