summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-04 00:05:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-04 00:05:32 +0000
commitf169d6ca2ebff2bd4049742fe8f4a3987cedc67c (patch)
tree48dd3b723438053b0e2f276b10072dfe01e4a446
parent4c73bfd6c70cda5c1920c1cb449371e0331da776 (diff)
downloadpfsense-f169d6ca2ebff2bd4049742fe8f4a3987cedc67c.zip
pfsense-f169d6ca2ebff2bd4049742fe8f4a3987cedc67c.tar.gz
Correctly write out /tmp/ file
-rw-r--r--etc/inc/interfaces.inc2
-rwxr-xr-xusr/local/www/interfaces_opt.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 392c0d2..6027043 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -460,7 +460,7 @@ function interfaces_wireless_configure($if, $wlcfg) {
mwexec("/sbin/ifconfig " . $ifcargs);
- $fd = fopen("{$g['tmp_path']}//sbin/ifconfig_wireless", "w");
+ $fd = fopen("{$g['tmp_path']}/ifconfig_wireless", "w");
fwrite($fd, "/sbin/ifconfig {$ifcargs}");
fclose($fd);
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index bc28cd6..a27f5e9 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -74,11 +74,12 @@ if ($optcfg['ipaddr'] == "dhcp") {
if ($_POST) {
unset($input_errors);
- $pconfig = $_POST;
/* filter out spaces from descriptions */
$POST['descr'] = str_replace(" ", "_", $POST['descr']);
+ $pconfig = $_POST;
+
/* input validation */
if ($_POST['enable']) {
OpenPOWER on IntegriCloud