summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--lib/MDK/Common.pm.pl2
-rw-r--r--lib/MDK/Common/System.pm2
3 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 73d6845..a41ef58 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Version 1.2.16 - 2 February 2009, by Pascal Terjan
+
+- protect ;<>&#[]~{}*? in setVarsInSh
+
Version 1.2.15 - 26 January 2009, by Pascal Terjan
- protect parenthesis in setVarsInSh and drop dead code (#47298)
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";