summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/wireless.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection/wireless.pm')
-rw-r--r--lib/network/connection/wireless.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 4f86f17..89d57dd 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -388,7 +388,7 @@ sub load_interface_settings {
$self->{hide_passwords} = 1;
# override ifcfg with network-specific settings if available
my $network = $self->get_selected_network;
- $self->{ifcfg}= $network ?
+ $self->{ifcfg} = $network ?
get_network_ifcfg($network->{ap}) || get_network_ifcfg($network->{essid}) :
$self->{ifcfg};
@@ -970,7 +970,7 @@ sub wpa_supplicant_read_conf() {
if ($network) {
#- in a "network = {}" block
# value is either the string with "quotes" - or a full-length string
- if (/^\s*(\w+)=\s*(?|([^"].*)|("[^"]*")).*$/) {
+ if (/^\s*(\w+)=\s*(?|([^"].*)|("[^"]*"))/) {
$network->{$1} = $2;
} elsif (/^\}/) {
#- end of network block