mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fixed bug #75355: preg_quote() does not quote # control character
This commit is contained in:
parent
abdece72c2
commit
84235344f9
3 changed files with 23 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue