From 5ec90c7155f7185b35feb59c47816fc4188a314d Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 4 Jan 2018 15:53:48 +0100 Subject: [PATCH] Fix XSS vulnerability Signed-off-by: VirtualTam --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 4068a82..c26f50d 100644 --- a/index.php +++ b/index.php @@ -431,7 +431,7 @@ if (isset($_POST['login'])) else { ban_loginFailed($conf); - $redir = '&username='. $_POST['login']; + $redir = '&username='. urlencode($_POST['login']); if (isset($_GET['post'])) { $redir .= '&post=' . urlencode($_GET['post']); foreach (array('description', 'source', 'title', 'tags') as $param) {