Skip to content

Commit

Permalink
Trim whitespace on new domains
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhowes authored Jun 14, 2024
1 parent 3030ff4 commit e95b214
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/operations/Domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public function addDomain(string $name, string $type, ? string $master) : array
throw new \Exceptions\SemanticException();
}

$name = trim($name);

$this->db->beginTransaction();

$query = $this->db->prepare('SELECT id FROM domains WHERE name=:name');
Expand Down

0 comments on commit e95b214

Please sign in to comment.