mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly write out /tmp/ file
This commit is contained in:
parent
4c73bfd6c7
commit
f169d6ca2e
@ -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);
|
||||
|
||||
|
||||
@ -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']) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user