diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/printerdrake.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm index 432ea16c2..d0aeffd20 100644 --- a/perl-install/printerdrake.pm +++ b/perl-install/printerdrake.pm @@ -450,7 +450,7 @@ and optionally the port number."), [ { title => _("Select Printer Connection"), cancel => !$printer->{configured}{$printer->{QUEUE}} ? '' : _("Remove queue"), callbacks => { complete => sub { - unless ($printer->{QUEUE} =~ /^\w*$/) { + unless ($printer->{QUEUE} =~ /^\w+[\w\|]*\w+$/) { $in->ask_warn('', _("Name of printer should contains only letters, numbers and the underscore")); return (1,0); } |