Skip to content

Commit

Permalink
Trim admin email $_POST
Browse files Browse the repository at this point in the history
  • Loading branch information
David Slater committed Aug 29, 2022
1 parent 18786cc commit c53f73e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html/admin/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<?php

if($_SERVER['REQUEST_METHOD'] == 'POST') {
foreach ($_POST as &$var) {
$var = trim($var);
}

$admin_email = ADMIN_EMAIL;

Expand Down

0 comments on commit c53f73e

Please sign in to comment.