mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13713] Escape special characters in preg_replace
PHPBB3-13713
This commit is contained in:
parent
659928f042
commit
c6e9f001e3
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ abstract class base_group implements source_interface
|
|||
// Grab group data
|
||||
$groups = $this->get_groups();
|
||||
|
||||
$matches = preg_grep('/^' . $keyword . '.*/i', $groups['names']);
|
||||
$matches = preg_grep('/^' . preg_quote($keyword) . '.*/i', $groups['names']);
|
||||
$group_ids = array_intersect($group_ids, array_flip($matches));
|
||||
|
||||
$names = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue