From 84235344f96e11b88ed5a2060baed5532718a46f Mon Sep 17 00:00:00 2001 From: Michael Moravec Date: Tue, 10 Oct 2017 19:00:29 +0200 Subject: Fixed bug #75355: preg_quote() does not quote # control character --- ext/pcre/php_pcre.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 3b6f795a8c..47f22a57f8 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -2629,6 +2629,7 @@ static PHP_FUNCTION(preg_quote) case '|': case ':': case '-': + case '#': extra_len++; break; @@ -2678,6 +2679,7 @@ static PHP_FUNCTION(preg_quote) case '|': case ':': case '-': + case '#': *q++ = '\\'; *q++ = c; break; -- cgit v1.2.1