summaryrefslogtreecommitdiff
path: root/log.php
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
committerAppleman1234 <applemansigloo@gmail.com>2022-09-25 13:30:13 +1000
commit2c69095a1edf7474073451285238659d0f62ce3f (patch)
tree5dee476605402c66dc2853d0836b29f6aedae62b /log.php
parente9a61e2fbbd930eaa80d6a5f33420cedc59d748c (diff)
PHP8.1 fixes from Rector
Diffstat (limited to 'log.php')
-rw-r--r--log.php2
1 files changed, 1 insertions, 1 deletions
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.');
}