mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
MFH; we would see a nasty problem again if it was not fixed...
This commit is contained in:
parent
9d079e9b3e
commit
73ca375f37
1 changed files with 4 additions and 2 deletions
|
@ -510,13 +510,15 @@ static char *substring_conf(char *start, int len, char quote TSRMLS_DC)
|
||||||
if (start[i] == '\\' && (start[i + 1] == '\\' || (quote && start[i + 1] == quote))) {
|
if (start[i] == '\\' && (start[i + 1] == '\\' || (quote && start[i + 1] == quote))) {
|
||||||
*resp++ = start[++i];
|
*resp++ = start[++i];
|
||||||
} else {
|
} else {
|
||||||
*resp++ = start[i];
|
|
||||||
#if HAVE_MBSTRING && !defined(COMPILE_DL_MBSTRING)
|
#if HAVE_MBSTRING && !defined(COMPILE_DL_MBSTRING)
|
||||||
if (php_mb_encoding_translation(TSRMLS_C)) {
|
if (php_mb_encoding_translation(TSRMLS_C)) {
|
||||||
size_t j = php_mb_mbchar_bytes(start+i TSRMLS_CC);
|
size_t j = php_mb_mbchar_bytes(start+i TSRMLS_CC);
|
||||||
while (j-- > 0) {
|
while (j-- > 0) {
|
||||||
*resp++ = start[++i];
|
*resp++ = start[i++];
|
||||||
}
|
}
|
||||||
|
--i;
|
||||||
|
} else {
|
||||||
|
*resp++ = start[i];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue