X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=27335a3692997c29a45094484c4b3185f5c5c1e1;hb=65c002ca1846ff09a6d97c6e3ce521bb6dccb741;hp=9d5f25eaf6bddc0b637db9264d9a5305fa72c40e;hpb=286757ab29660916f6b66d1fc0ad3b53aef337c8;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) {