Skip to content

Commit

Permalink
escape for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Oct 7, 2024
1 parent 25edaff commit 0b98998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/includes/easyparliament/searchlog.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function _db_row_to_array($row, $section_string = null) {
$visible_name = preg_replace('/"/', '', $query);

if (isset($section_string)) {
$visible_name = preg_replace('/' . $section_string . '/', '', $visible_name);
$visible_name = preg_replace('/' . preg_quote($section_string) . '/', '', $visible_name);
}

$rowarray = $row;
Expand Down

0 comments on commit 0b98998

Please sign in to comment.