From 2c69095a1edf7474073451285238659d0f62ce3f Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Sun, 25 Sep 2022 13:30:13 +1000 Subject: PHP8.1 fixes from Rector --- log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'log.php') diff --git a/log.php b/log.php index 4577a986..76bf7961 100644 --- a/log.php +++ b/log.php @@ -2,7 +2,7 @@ include 'inc/bootstrap.php'; include 'inc/mod/pages.php'; -if (!isset($_GET['board']) || !preg_match("/{$config['board_regex']}/u", $_GET['board'])) { +if (!isset($_GET['board']) || !preg_match("/{$config['board_regex']}/u", (string) $_GET['board'])) { http_response_code(400); error('Bad board.'); } -- cgit v1.3