X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=c26f50d110d4a680b215052269f3ca509aad4293;hb=5ec90c7155f7185b35feb59c47816fc4188a314d;hp=4068a828f10293ee40a8e245e5052e908cbe8bf3;hpb=ecccb14e2ab4e5f372ea9946b29995c3c7122a5c;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 4068a828..c26f50d1 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) {