Correctly write out /tmp/ file

This commit is contained in:
Scott Ullrich 2005-08-04 00:05:32 +00:00
parent 4c73bfd6c7
commit f169d6ca2e
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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']) {