summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-12-03 12:25:24 +0000
committerdamien <damien@mandriva.com>2002-12-03 12:25:24 +0000
commit2570c198b040d0af85178f4a69fee48563a3ea39 (patch)
tree12287b84cf3fecb17025d34b4277cd3bac938c1b /perl-install/any.pm
parentb2d0a0da0642e570c4fac7f1911e132a5069a6aa (diff)
downloaddrakx-backup-do-not-use-2570c198b040d0af85178f4a69fee48563a3ea39.tar
drakx-backup-do-not-use-2570c198b040d0af85178f4a69fee48563a3ea39.tar.gz
drakx-backup-do-not-use-2570c198b040d0af85178f4a69fee48563a3ea39.tar.bz2
drakx-backup-do-not-use-2570c198b040d0af85178f4a69fee48563a3ea39.tar.xz
drakx-backup-do-not-use-2570c198b040d0af85178f4a69fee48563a3ea39.zip
allow #, and other characters in phone number
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm2
1 files changed, 1 insertions, 1 deletions
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} && ',';