summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_ip_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-21 20:54:58 +0000
committerErmal <eri@pfsense.org>2013-01-21 20:54:58 +0000
commit82e89ce3ad65586129583321d9459412ff9fd4af (patch)
treec9a43384d20b4eaa45d745b3b0d3bb292d49506f /usr/local/www/services_captiveportal_ip_edit.php
parent3335f5d1bdc707ca814efc65c8f70bea9cac4498 (diff)
downloadpfsense-82e89ce3ad65586129583321d9459412ff9fd4af.zip
pfsense-82e89ce3ad65586129583321d9459412ff9fd4af.tar.gz
Use more secure file name for the operations to avoid issues
Diffstat (limited to 'usr/local/www/services_captiveportal_ip_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_ip_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php
index 88f1203..0130e35 100755
--- a/usr/local/www/services_captiveportal_ip_edit.php
+++ b/usr/local/www/services_captiveportal_ip_edit.php
@@ -160,7 +160,7 @@ if ($_POST) {
$rules .= "pipe delete " . ($ipfw['dnpipe']+1);
}
$rules .= captiveportal_allowedip_configure_entry($ip);
- $uniqid = uniq_id("{$cpzone}_allowed");
+ $uniqid = uniqid("{$cpzone}_allowed");
@file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
captiveportal_ipfw_set_context($cpzone);
mwexec("/sbin/ipfw -q {$g['tmp_path']}/{$uniqid}_tmp");
OpenPOWER on IntegriCloud