X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=27335a3692997c29a45094484c4b3185f5c5c1e1;hb=f452d3c4dff32003e7be10b3704bd4b1e23d7ad4;hp=9d5f25eaf6bddc0b637db9264d9a5305fa72c40e;hpb=fd08b50a80c3aed25f9e2a19cbfe9fb3ad35cf1f;p=github%2Fshaarli%2FShaarli.git 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) {