From 2570c198b040d0af85178f4a69fee48563a3ea39 Mon Sep 17 00:00:00 2001 From: damien Date: Tue, 3 Dec 2002 12:25:24 +0000 Subject: allow #, and other characters in phone number --- perl-install/any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/any.pm b/perl-install/any.pm index 6193f848d..9e0d58139 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -442,7 +442,7 @@ sub pppConfig { $toreplace{$_} = $modem->{$_} foreach qw(connection phone login passwd auth domain dns1 dns2); $toreplace{kpppauth} = ${{ 'Script-based' => 0, 'PAP' => 1, 'Terminal-based' => 2, }}{$modem->{auth}}; $toreplace{kpppauth} = ${{ 'Script-based' => 0, 'PAP' => 1, 'Terminal-based' => 2, 'CHAP' => 3 }}{$modem->{auth}}; - $toreplace{phone} =~ s/\D//g; + $toreplace{phone} =~ s/[a-zA-Z]//g; $toreplace{dnsserver} = join ',', map { $modem->{$_} } "dns1", "dns2"; $toreplace{dnsserver} .= $toreplace{dnsserver} && ','; -- cgit v1.2.1