diff --git a/src/etc/inc/captiveportal.inc b/src/etc/inc/captiveportal.inc index 6d4a481dc..c65aa1ff3 100644 --- a/src/etc/inc/captiveportal.inc +++ b/src/etc/inc/captiveportal.inc @@ -213,8 +213,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $message = 0; include("/var/etc/captiveportal-{$cpzone}-logout.html"); - - } + } return $sessionid; } @@ -224,8 +223,8 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut // /* reinit will disconnect all users, be careful! */ -function captiveportal_init_rules($reinit = false) { - +function captiveportal_init_rules($reinit = false) +{ $cpc = new OPNsense\CaptivePortal\CPClient(); $cpc->reconfigure(); unset($cpc); diff --git a/src/opnsense/service/conf/configd.conf b/src/opnsense/service/conf/configd.conf index 818ba6a3a..93c1718f7 100644 --- a/src/opnsense/service/conf/configd.conf +++ b/src/opnsense/service/conf/configd.conf @@ -3,7 +3,5 @@ socket_filename:/var/run/configd.socket pid_filename:/var/run/configd.pid [environment] -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin HOME=/ -USER=root -SHELL=/usr/local/etc/rc.initial diff --git a/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf b/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf index c2f99c186..39b3f064d 100644 --- a/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf +++ b/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf @@ -118,7 +118,7 @@ add 30000 set 0 count ip from any to any #====================================================================================== -# traffic shaping section, authorized traffic +# traffic shaping section, authorized traffic #====================================================================================== add 60000 return via any add 65533 pass ip from any to any diff --git a/src/www/system_groupmanager.php b/src/www/system_groupmanager.php index 53f7cd9df..a61ec7843 100644 --- a/src/www/system_groupmanager.php +++ b/src/www/system_groupmanager.php @@ -120,7 +120,7 @@ if (isset($_POST['save'])) { break; } } - + $sys_groups = file_get_contents('/etc/group'); foreach (explode("\n",$sys_groups) as $line) { if (explode(":",$line)[0] == $_POST['groupname'] ) { @@ -128,7 +128,6 @@ if (isset($_POST['save'])) { } } } - if (!$input_errors) { $group = array();