From: VirtualTam Date: Thu, 4 Jan 2018 14:53:48 +0000 (+0100) Subject: Fix XSS vulnerability X-Git-Tag: v0.9.4~16^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=65c002ca1846ff09a6d97c6e3ce521bb6dccb741 Fix XSS vulnerability Signed-off-by: VirtualTam --- diff --git a/index.php b/index.php index 9d5f25ea..27335a36 100644 --- a/index.php +++ b/index.php @@ -436,7 +436,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) {