From d7535722542400ab6dfbbaa8e9546d9a45908cea Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Thu, 24 Jul 2025 06:49:12 +0300 Subject: [PATCH] fix names?? --- board.php | 8 ++++---- index.php | 3 +-- newthread.php | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/board.php b/board.php index 2a4a51d..5dc4fb3 100644 --- a/board.php +++ b/board.php @@ -12,7 +12,7 @@ if (!isset($_SESSION['authenticated'])) { $config = require 'config.php'; $boardId = $_GET['board'] ?? 'b'; -$threadId = $_GET['thread'] ?? null; +$threadId = isset($_GET['thread']) ? urldecode($_GET['thread']) : null; try { $db = new PDO( @@ -181,7 +181,7 @@ function formatMessage($message) {
@@ -220,7 +220,7 @@ function formatMessage($message) {
- + @@ -252,7 +252,7 @@ function formatMessage($message) {
diff --git a/index.php b/index.php index 3fa34d0..10d27df 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,6 @@ header('Content-Type: text/html; charset=utf-8'); header('X-Content-Type-Options: nosniff'); header('X-Frame-Options: DENY'); header('X-XSS-Protection: 1; mode=block'); -header('Content-Type: text/html; charset=utf-8'); $config = require 'config.php'; @@ -155,7 +154,7 @@ if (isset($_GET['logout'])) {