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'])) {