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() );