fix search request detection

This commit is contained in:
yggverse 2024-07-03 19:44:18 +03:00
parent f16a64ddb7
commit 45f79ddf75

View file

@ -248,9 +248,13 @@ class Address
)
);
// Address correct
if ($address->getHost())
{
// Hostname request
if (filter_var(
$address->getHost(),
FILTER_VALIDATE_DOMAIN,
FILTER_FLAG_HOSTNAME
)
) {
$this->navbar->request->gtk->set_text(
$address->get()
);