Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Commit

Permalink
syntaxe correction
Browse files Browse the repository at this point in the history
  • Loading branch information
mollef committed Apr 2, 2018
1 parent c3c10b1 commit 87f3dfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sources/www/dhcpd.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,7 @@ function dhcp_update_config()
{
$error["dhcp_default_lease"] = gettext("Ce n'est pas un nombre valide : " . $_POST['dhcp_default_lease']);
}
if (preg_match("/^eth[0-9]+$/", $_POST['dhcp_iface']) || preg_match("/^bond[0-9]+$/", $_POST['dhcp_iface']) ||
|| preg_match("/^br[0-9]+$/", $_POST['dhcp_iface']) || preg_match("/^vlan[0-9]+$/", $_POST['dhcp_iface']))
if (preg_match("/^eth[0-9]+$/", $_POST['dhcp_iface']) || preg_match("/^bond[0-9]+$/", $_POST['dhcp_iface']) || preg_match("/^br[0-9]+$/", $_POST['dhcp_iface']) || preg_match("/^vlan[0-9]+$/", $_POST['dhcp_iface']))
{
$update_query = mysqli_prepare($dhcp_link, "UPDATE params SET value=? WHERE name='dhcp_iface'");
mysqli_stmt_bind_param($update_query,"s", $_POST["dhcp_iface"]);
Expand Down

0 comments on commit 87f3dfd

Please sign in to comment.