limit record length

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-05-18 15:55:20 +02:00
parent 1e3262d691
commit 076b6143ce
3 changed files with 6 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ if ($action == 'add_record' && ! empty($_POST)) {
{
$errors[] = sprintf($lng['error']['subdomainiswrong'], $idna_convert->decode($record));
}
if (strlen($record) > 63)
{
$errors[] = $lng['error']['dns_record_toolong'];
}
}
}

View File

@@ -2017,3 +2017,4 @@ $lng['serversettings']['dns_server']['description'] = 'Remember that daemons hav
$lng['error']['domain_nopunycode'] = 'You must not specify punycode (IDNA). The domain will automatically be converted';
$lng['admin']['dnsenabled'] = 'Enable DNS editor';
$lng['error']['dns_record_toolong'] = 'Records/labels can only be up to 63 characters';

View File

@@ -1670,3 +1670,4 @@ $lng['serversettings']['dns_server']['description'] = 'Dienste müssen mit den f
$lng['error']['domain_nopunycode'] = 'Die Eingabe von Punycode (IDNA) ist nicht notwendig. Die Domain wird automatisch konvertiert.';
$lng['admin']['dnsenabled'] = 'Zugriff auf DNS Editor';
$lng['error']['dns_record_toolong'] = 'Records/Labels können maximal 63 Zeichen lang sein';