Fixed couple of IDN related bugs

This commit is contained in:
Pinga 2024-01-25 10:26:30 +02:00
parent 4799d57f77
commit c737147aae
4 changed files with 6 additions and 4 deletions

View file

@ -28,7 +28,7 @@
<div class="card">
<div class="card-body">
<form action="/host/update" method="post">
{{ csrf.field | raw }}<input type="hidden" name="hostName" value="{{ host.name }}">
{{ csrf.field | raw }}<input type="hidden" name="hostName" value="{{ host.punycode }}">
<div class="form-group mt-3">
<label for="ipv4" class="form-label">{{ __('IPv4 Address') }}:</label>
<input type="text" class="form-control" id="ipv4" name="ipv4" placeholder="192.168.1.1" pattern="^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$" value="{{ hostIPv4[0].addr }}">