force integer conversion for domainimport-offset-field, as POST sends it as string; filter IP-addresses that are unknown to froxlor when importing domains.

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-01-30 17:55:27 +01:00
parent d7f8586413
commit 7680cd441c
2 changed files with 16 additions and 1 deletions

View File

@@ -1911,7 +1911,7 @@ if ($page == 'domains'
$customerid = intval($_POST['customerid']);
$separator = validate($_POST['separator'], 'separator');
$offset = validate($_POST['offset'], 'offset', "/[0-9]/i");
$offset = (int)validate($_POST['offset'], 'offset', "/[0-9]/i");
$file_name = $_FILES['file']['tmp_name'];