summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-01-24 15:13:49 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-01-24 15:13:49 +0100
commit3c98c2d0cbf476432a4fa6264afc5e43c58fb38f (patch)
treeb22e9e10e1587ef0e3198512781a9c53e02c744e /ext/mbstring/php_mbregex.c
parentd460e06cb904cd5d9d5412d924cd8690811c97c2 (diff)
downloadphp-git-3c98c2d0cbf476432a4fa6264afc5e43c58fb38f.tar.gz
Fixed bug #77514
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
-rw-r--r--ext/mbstring/php_mbregex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c
index cc96e04f39..319ee567c6 100644
--- a/ext/mbstring/php_mbregex.c
+++ b/ext/mbstring/php_mbregex.c
@@ -713,8 +713,7 @@ static inline void mb_regex_substitute(
sp = p; /* save position */
clen = (int) php_mb_mbchar_bytes_ex(++p, enc);
if (clen != 1 || p == eos) {
- /* skip escaped multibyte char */
- p += clen;
+ /* skip backslash followed by multibyte char */
smart_str_appendl(pbuf, sp, p - sp);
continue;
}