mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFH; we would see a nasty problem again if it was not fixed...
This commit is contained in:
parent
9d079e9b3e
commit
73ca375f37
@ -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))) {
|
||||
*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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user