diff options
author | Nuno Lopes <nlopess@php.net> | 2009-01-28 22:39:33 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2009-01-28 22:39:33 +0000 |
commit | 4ff9ad5bf1d5fc2eb279c5b3765b6406e4b583df (patch) | |
tree | a6c73b84097df5f4a5fa4fcb2be1106681a66e7f /ext/pcre/php_pcre.c | |
parent | 458c0567b246d012c222801581283829f9692c26 (diff) | |
download | php-git-4ff9ad5bf1d5fc2eb279c5b3765b6406e4b583df.tar.gz |
fix bug #47229: preg_quote should escape '-'
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |