From 45f79ddf75db5da571864d7f071571017e9968a0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 3 Jul 2024 19:44:18 +0300 Subject: [PATCH] fix search request detection --- src/Entity/Window/Tab/Address.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Entity/Window/Tab/Address.php b/src/Entity/Window/Tab/Address.php index 7f625bfc..b2c6b61d 100644 --- a/src/Entity/Window/Tab/Address.php +++ b/src/Entity/Window/Tab/Address.php @@ -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() );