mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Avoid breaking hostapd config file with tabs
This commit is contained in:
parent
a321910f24
commit
98a9822897
@ -995,20 +995,13 @@ function SaveHostAPDConfig(){
|
|||||||
auth_algs=1
|
auth_algs=1
|
||||||
wpa_key_mgmt=WPA-PSK';
|
wpa_key_mgmt=WPA-PSK';
|
||||||
|
|
||||||
$config .= "interface=".$_POST['interface']."
|
$config .= "interface=".$_POST['interface'].PHP_EOL;
|
||||||
";
|
$config .= "ssid=".$_POST['ssid'].PHP_EOL;
|
||||||
$config .= "ssid=".$_POST['ssid']."
|
$config .= "hw_mode=".$_POST['hw_mode'].PHP_EOL;
|
||||||
";
|
$config .= "channel=".$_POST['channel'].PHP_EOL;
|
||||||
$config .= "hw_mode=".$_POST['hw_mode']."
|
$config .= "wpa=".$_POST['wpa'].PHP_EOL;
|
||||||
";
|
$config .='wpa_passphrase='.$_POST['wpa_passphrase'].PHP_EOL;
|
||||||
$config .= "channel=".$_POST['channel']."
|
$config .="wpa_pairwise=".$_POST['wpa_pairwise'].PHP_EOL;
|
||||||
";
|
|
||||||
$config .= "wpa=".$_POST['wpa']."
|
|
||||||
";
|
|
||||||
$config .='wpa_passphrase='.$_POST['wpa_passphrase'].'
|
|
||||||
';
|
|
||||||
$config .="wpa_pairwise=".$_POST['wpa_pairwise']."
|
|
||||||
";
|
|
||||||
$config .="country_code=".$_POST['country_code'];
|
$config .="country_code=".$_POST['country_code'];
|
||||||
|
|
||||||
exec( "echo '$config' > /tmp/hostapddata", $return );
|
exec( "echo '$config' > /tmp/hostapddata", $return );
|
||||||
|
Loading…
Reference in New Issue
Block a user