summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-12-29 07:51:22 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-12-29 07:51:22 +0000
commitb9ae9ecd24e071c346badbd3ac275469b04429d6 (patch)
treefa437021c66627ecab9bae8950d21f40836ec84b
parent33c9e0eabe693a70f5d2722687c1210047b594f5 (diff)
downloadcontrol-center-b9ae9ecd24e071c346badbd3ac275469b04429d6.tar
control-center-b9ae9ecd24e071c346badbd3ac275469b04429d6.tar.gz
control-center-b9ae9ecd24e071c346badbd3ac275469b04429d6.tar.bz2
control-center-b9ae9ecd24e071c346badbd3ac275469b04429d6.tar.xz
control-center-b9ae9ecd24e071c346badbd3ac275469b04429d6.zip
handle profiles with more than one space/underscore in their name
-rwxr-xr-xcontrol-center2
1 files changed, 1 insertions, 1 deletions
diff --git a/control-center b/control-center
index 1dc51d1b..7cb99c6a 100755
--- a/control-center
+++ b/control-center
@@ -437,7 +437,7 @@ sub get_path { join('', map { my $i = $_; $i =~ s/_//; $i } @_) }
# menus do not like "_" from profiles (whereas netprofile does not like spaces in profile names...)
sub profile2menu {
my ($profile) = @_;
- $profile =~ s/_/ /;
+ $profile =~ s/_/ /g;
"/$profile";
}