X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=7c5b0f8eb6b874ad8b04f5241c481ad97149856d;hb=c372fc96faa94c124cf94d26fa34666d071116f8;hp=62bdffd56363f8fda5d2617f8f0d4e16393736f9;hpb=455f776a3d0f9132e5a94160b5634111d44cade4;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index 62bdffd5..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) {