From ad862e41f17d2187ee0bd9e0e4667101dc077938 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 15 May 2026 21:06:44 +0000 Subject: [PATCH] Trim username input before storing in session (#7977) --- core/authentication/resources/classes/authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index 8e70ba9d5..904cdabba 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -639,7 +639,7 @@ class authentication { //if the username if (!empty($_REQUEST["username"])) { - $_SESSION['username'] = $_REQUEST["username"]; + $_SESSION['username'] = trim($_REQUEST["username"]); } //set a default value for unqiue