domain-validator: adjust querying the domain parameter

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2026-02-03 16:51:54 +01:00 committed by GitHub
parent eba86c3ad1
commit 270302d74f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,10 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
$domain = $_GET['domain'] ?? ''; $domain = '';
if (isset($_GET['domain']) && is_string($_GET['domain'])) {
$domain = $_GET['domain'];
}
if (!str_contains($domain, '.')) { if (!str_contains($domain, '.')) {
http_response_code(400); http_response_code(400);