summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-20 20:18:04 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-20 20:18:04 +0000
commitb80b01971d355cf70f0d4877906464f29a9c33c3 (patch)
tree313e324679552ff7248f12d80cc414872cfb44ac
parent65e1da2546a1ad20f5005c2a8b41c8eb51727a02 (diff)
downloaddrakx-net-b80b01971d355cf70f0d4877906464f29a9c33c3.tar
drakx-net-b80b01971d355cf70f0d4877906464f29a9c33c3.tar.gz
drakx-net-b80b01971d355cf70f0d4877906464f29a9c33c3.tar.bz2
drakx-net-b80b01971d355cf70f0d4877906464f29a9c33c3.tar.xz
drakx-net-b80b01971d355cf70f0d4877906464f29a9c33c3.zip
replace pipe characters with space in device descriptions
-rw-r--r--lib/network/connection.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 0088ede..a641691 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -66,7 +66,9 @@ sub new {
sub get_description {
my ($self) = @_;
- $self->{device}{description};
+ my $description = $self->{device}{description};
+ $description =~ s/\|/ /g;
+ $description;
}
sub get_driver {