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

View File

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