diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-04 00:05:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-04 00:05:32 +0000 |
commit | f169d6ca2ebff2bd4049742fe8f4a3987cedc67c (patch) | |
tree | 48dd3b723438053b0e2f276b10072dfe01e4a446 | |
parent | 4c73bfd6c70cda5c1920c1cb449371e0331da776 (diff) | |
download | pfsense-f169d6ca2ebff2bd4049742fe8f4a3987cedc67c.zip pfsense-f169d6ca2ebff2bd4049742fe8f4a3987cedc67c.tar.gz |
Correctly write out /tmp/ file
-rw-r--r-- | etc/inc/interfaces.inc | 2 | ||||
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 3 |
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']) { |