X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;fp=index.php;h=d81712a638299a8713493b4b0781a483185edefb;hb=aadec30ecd068a48ae3cbc920eff9f6ee47a24ed;hp=b4ccd1bdfc05f58bcdc4134d1487550a7e7e44a0;hpb=8868f3ca461011a8fb6dd9f90b60ed697ab52fc5;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index b4ccd1bd..d81712a6 100644 --- a/index.php +++ b/index.php @@ -459,7 +459,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') as $param) {