mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-28 07:03:28 +02:00
Further cleanup
This commit is contained in:
parent
2d6c2b98eb
commit
341a282461
3 changed files with 5 additions and 98 deletions
|
@ -251,6 +251,8 @@ class HostsController extends Controller
|
|||
public function viewHost(Request $request, Response $response, $args)
|
||||
{
|
||||
$db = $this->container->get('db');
|
||||
// Get the current URI
|
||||
$uri = $request->getUri()->getPath();
|
||||
|
||||
function isValidHostname($hostname) {
|
||||
// Check for IDN and convert to ASCII if necessary
|
||||
|
@ -298,6 +300,7 @@ class HostsController extends Controller
|
|||
'hostIPv4' => $hostIPv4,
|
||||
'hostIPv6' => $hostIPv6,
|
||||
'registrars' => $registrars,
|
||||
'currentUri' => $uri
|
||||
]);
|
||||
} else {
|
||||
// Host does not exist, redirect to the hosts view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue