summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-09-09 11:28:53 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-09-12 08:44:51 -0300
commita7c00d8dba79bb76feeecc7deee35a757653ca61 (patch)
tree24dbd1f12baf159b01d4eb0135ae33be3757b846 /usr/local/www/services_captiveportal_mac_edit.php
parent0d33f1fc6f9e548f6918b828c6c272d6b7296ec8 (diff)
downloadpfsense-a7c00d8dba79bb76feeecc7deee35a757653ca61.zip
pfsense-a7c00d8dba79bb76feeecc7deee35a757653ca61.tar.gz
Delete the old mac when action changes, not the current one
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php
index 095e36d..dfd471f 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -142,7 +142,7 @@ if ($_POST) {
write_config();
if (isset($config['captiveportal'][$cpzone]['enable'])) {
- $rules = captiveportal_passthrumac_delete_entry($mac);
+ $rules = captiveportal_passthrumac_delete_entry($oldmac);
$rules .= captiveportal_passthrumac_configure_entry($mac);
$uniqid = uniqid("{$cpzone}_macedit");
file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
OpenPOWER on IntegriCloud