From 115ace0f31510647563a72ff36a15a9bff88a971 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 10 May 2012 22:46:24 +0000 Subject: harddrake2: allow writing 0 as module option, and forbid options with spaces (from Colin) --- perl-install/modules/interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/modules') diff --git a/perl-install/modules/interactive.pm b/perl-install/modules/interactive.pm index 956d98bd1..abb1e9a82 100644 --- a/perl-install/modules/interactive.pm +++ b/perl-install/modules/interactive.pm @@ -20,7 +20,7 @@ sub config_window { return; } if ($in->ask_from(N("Module configuration"), N("You can configure each parameter of the module here."), \@l)) { - my $options = join(' ', map { if_($conf{$_}, "$_=$conf{$_}") } keys %conf); + my $options = join(' ', map { if_($conf{$_} =~ /^\S+$/, "$_=$conf{$_}") } keys %conf); my $old_options = $modules_conf->get_options($data->{driver}); if ($options ne $old_options) { $modules_conf->set_options($data->{driver}, $options); -- cgit v1.2.1