Skip to content

Commit 114222e

Browse files
committed
Ue preg_quote
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent c0173f6 commit 114222e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

notification/method/webpush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ protected function prepare_avatar($avatar)
456456
$avatar = $matches[1][1] ?? $matches[0][1];
457457
}
458458

459-
return preg_replace("#^\\{$this->path_helper->get_web_root_path()}#", $this->get_board_url(), $avatar, 1);
459+
return preg_replace('#^' . preg_quote($this->path_helper->get_web_root_path(), '#') . '#', $this->get_board_url(), $avatar, 1);
460460
}
461461

462462
/**

0 commit comments

Comments
 (0)