From c69b745468fa1d9dff47f3d9242cea72852f6fdb Mon Sep 17 00:00:00 2001 From: Floris Van der krieken Date: Wed, 30 Jan 2019 12:52:13 +0100 Subject: [PATCH] v 0.2.1 --- actions/update/siteconfig.php | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/update/siteconfig.php b/actions/update/siteconfig.php index 4a507e5..e3caaa2 100644 --- a/actions/update/siteconfig.php +++ b/actions/update/siteconfig.php @@ -33,6 +33,7 @@ $bgprouterid = filter_var($_POST['bgprouterid'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4); $bgpas = filter_var($_POST['bgpas'], FILTER_VALIDATE_INT); +if ($bgpas == false) $bgpas = 0; $strQuery1 = "UPDATE `sites` SET `bgp`='" . $bgp . "', `bgprouterid`='" . $bgprouterid . "', `bgpas`='" . $bgpas . "' WHERE `idsites`='" . $site . "';"; $result1 = $dbhandle->query($strQuery1) or exit("Error code ({$dbhandle->errno}): {$dbhandle->error}");