X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=7c5b0f8eb6b874ad8b04f5241c481ad97149856d;hb=c372fc96faa94c124cf94d26fa34666d071116f8;hp=17fb4a2f458e8c416d774c67be099936e4620ced;hpb=63bddaad4b6578d5d9a5728cba9f2f0d552805e5;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 17fb4a2f..7c5b0f8e 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ /shaarli/ define('WEB_PATH', substr($_SERVER['REQUEST_URI'], 0, 1+strrpos($_SERVER['REQUEST_URI'], '/', 0))); @@ -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) {