summaryrefslogtreecommitdiffstats
path: root/lib/network/netconnect.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-25 18:32:37 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-25 18:32:37 +0000
commit0502d0eba5b0688bdbc3df7eef57eff5a0929e10 (patch)
tree92a8963dff3268c31f24a308fa22e5003acb1b2a /lib/network/netconnect.pm
parent13075e4121c700711fc86402393e02e5b6d543fa (diff)
downloaddrakx-net-0502d0eba5b0688bdbc3df7eef57eff5a0929e10.tar
drakx-net-0502d0eba5b0688bdbc3df7eef57eff5a0929e10.tar.gz
drakx-net-0502d0eba5b0688bdbc3df7eef57eff5a0929e10.tar.bz2
drakx-net-0502d0eba5b0688bdbc3df7eef57eff5a0929e10.tar.xz
drakx-net-0502d0eba5b0688bdbc3df7eef57eff5a0929e10.zip
fix crash when weirdly translated locale country contains metacharacters (from Cosmin Humeniuc)
Diffstat (limited to 'lib/network/netconnect.pm')
-rw-r--r--lib/network/netconnect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index 097bc77..2d0a60b 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -189,7 +189,7 @@ sub real_main {
@providers_data = $connection->get_providers;
require lang;
my $locale_country = lang::c2name($::o->{locale}{country} || lang::read()->{country});
- $provider_name = find { /^$locale_country/ } sort(keys %{$providers_data[0]});
+ $provider_name = find { /^\Q$locale_country\E/ } sort(keys %{$providers_data[0]});
},
name => sub { $net->{type}->get_type_name . "\n\n" . N("Please select your provider:") },
data => sub {