From d0d822342a9bda7983202e8da1d0b666821dd1eb Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 12 Jun 2009 12:47:02 +0000 Subject: Correctly handle WPA-Enterprise wpa_supplicant settings (#51574). --- lib/network/connection/wireless.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/network/connection') diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 42b9747..ff79459 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -930,8 +930,8 @@ sub wpa_supplicant_read_conf() { foreach (cat_($::prefix . $wpa_supplicant_conf)) { if ($network) { #- in a "network = {}" block - # value is either the string with "quotes" - or a non-whitespace containing string - if (/^\s*(\w+)=\s*(?|([^"]\S*)|("[^"]*")).*$/) { + # value is either the string with "quotes" - or a full-length string + if (/^\s*(\w+)=\s*(?|([^"].*)|("[^"]*")).*$/) { $network->{$1} = $2; } elsif (/^\}/) { #- end of network block -- cgit v1.2.1