From 527261574fdca836b4a8c7df044bc0297bc7beaf Mon Sep 17 00:00:00 2001 From: Akkariin Meiko Date: Sun, 5 Dec 2021 17:32:58 +0800 Subject: [PATCH] Fix XSS --- core/PostHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/PostHandler.php b/core/PostHandler.php index 9d7d2c7..6cb534d 100755 --- a/core/PostHandler.php +++ b/core/PostHandler.php @@ -94,7 +94,7 @@ class PostHandler { } } else { $msg = $result[1] ?? "未知错误"; - exit($msg); + exit(htmlspecialchars($msg)); } } } else { @@ -369,4 +369,4 @@ class PostHandler { } } } -} \ No newline at end of file +}