From 3c47af81cc0fcd39a403feccb72e281ea87f1f24 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 2 Feb 2009 10:29:51 +0000 Subject: - protect ;<>&#[]~{}*? in setVarsInSh --- lib/MDK/Common.pm.pl | 2 +- lib/MDK/Common/System.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MDK/Common.pm.pl b/lib/MDK/Common.pm.pl index 6c54e4e..3ca2d6f 100644 --- a/lib/MDK/Common.pm.pl +++ b/lib/MDK/Common.pm.pl @@ -73,7 +73,7 @@ our @ISA = qw(Exporter); # perl_checker: RE-EXPORT-ALL our @EXPORT = map { @$_ } map { values %{'MDK::Common::' . $_ . 'EXPORT_TAGS'} } grep { /::$/ } keys %MDK::Common::; -our $VERSION = "1.2.15"; +our $VERSION = "1.2.16"; 1; EOF diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm index 71b9bad..e3d514d 100644 --- a/lib/MDK/Common/System.pm +++ b/lib/MDK/Common/System.pm @@ -377,7 +377,7 @@ sub setVarsInShMode { if ($val =~ /["`\$]/) { $val =~ s/(')/\\$1/g; $val = qq('$val'); - } elsif ($val =~ /[\(\)'|\s\\]/) { + } elsif ($val =~ /[\(\)'|\s\\;<>&#\[\]~{}*?]/) { $val = qq("$val"); } "$_=$val\n"; -- cgit v1.2.1