Skip to content

Commit

Permalink
Remove whitespace from admin detail fields before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
geominorai committed Jun 15, 2019
1 parent 97bce64 commit 26dd1b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/pages/admin.edit.admindetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 26dd1b0

Please # to comment.