From 4ff9ad5bf1d5fc2eb279c5b3765b6406e4b583df Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 28 Jan 2009 22:39:33 +0000 Subject: fix bug #47229: preg_quote should escape '-' --- ext/pcre/php_pcre.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 0e3390f20a..496418a72e 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1661,6 +1661,7 @@ static PHP_FUNCTION(preg_quote) case '<': case '|': case ':': + case '-': *q++ = '\\'; *q++ = c; break; -- cgit v1.2.1