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'];
}
}
}