diff --git a/web/pages/admin.edit.admindetails.php b/web/pages/admin.edit.admindetails.php index a89b74705..326f24181 100644 --- a/web/pages/admin.edit.admindetails.php +++ b/web/pages/admin.edit.admindetails.php @@ -72,9 +72,9 @@ // Form submitted? if (isset($_POST['adminname'])) { - $a_name = $_POST['adminname']; - $a_steam = \SteamID\SteamID::toSteam2($_POST['steam']); - $a_email = $_POST['email']; + $a_name = trim($_POST['adminname']); + $a_steam = \SteamID\SteamID::toSteam2(trim($_POST['steam'])); + $a_email = trim($_POST['email']); $a_serverpass = $_POST['a_useserverpass'] == "on"; $pw_changed = false; $serverpw_changed = false;