mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Properly handle large passthrough entries even here.
This commit is contained in:
parent
9b255a367d
commit
2ea976b71c
@ -71,14 +71,19 @@ if ($_POST) {
|
||||
if ($_POST['apply']) {
|
||||
$retval = 0;
|
||||
|
||||
$cpzoneid = $a_cp[$cpzone]['cpzoneid'];
|
||||
$rules = captiveportal_passthrumac_configure();
|
||||
@file_put_contents("{$g['tmp_path']}/passthrumac_gui", $rules);
|
||||
mwexec("/sbin/ipfw -x {$cpzoneid} {$g['tmp_path']}/passthrumac_gui");
|
||||
$savemsg = get_std_save_message($retval);
|
||||
if ($retval == 0)
|
||||
clear_subsystem_dirty('passthrumac');
|
||||
@unlink("{$g['tmp_path']}/passthrumac_gui");
|
||||
if (is_array($a_cp[$cpzone]['passthrumac'])) {
|
||||
if (count($a_cp[$cpzone]['passthrumac']) > 2000)
|
||||
set_time_limit(0);
|
||||
$cpzoneid = $a_cp[$cpzone]['cpzoneid'];
|
||||
$rules = captiveportal_passthrumac_configure();
|
||||
@file_put_contents("{$g['tmp_path']}/passthrumac_gui", $rules);
|
||||
mwexec("/sbin/ipfw -x {$cpzoneid} {$g['tmp_path']}/passthrumac_gui");
|
||||
$savemsg = get_std_save_message($retval);
|
||||
if ($retval == 0)
|
||||
clear_subsystem_dirty('passthrumac');
|
||||
@unlink("{$g['tmp_path']}/passthrumac_gui");
|
||||
set_time_limit(900);
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST['postafterlogin']) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user