Skip to content

Commit

Permalink
Merge pull request #574 from geominorai/patch/admindetails_trim
Browse files Browse the repository at this point in the history
Trim whitespace from admin detail fields before saving

Co-authored-by: geominorai <geominorai@users.noreply.github.com>
  • Loading branch information
rumblefrog and geominorai authored Jun 21, 2019
2 parents 97bce64 + 26dd1b0 commit 2281114
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 2281114

Please # to comment.