summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-01-26 09:50:06 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-01-26 09:50:06 +0000
commit7cb27275b7c6316bdc9b58fd98e3a55999f1094c (patch)
tree841a2bb94a53c77503f55f5894482cb968fc34e0
parent31e639b9a1e67674c5090ba9afd887cf76d7558c (diff)
downloadperl-MDK-Common-7cb27275b7c6316bdc9b58fd98e3a55999f1094c.tar
perl-MDK-Common-7cb27275b7c6316bdc9b58fd98e3a55999f1094c.tar.gz
perl-MDK-Common-7cb27275b7c6316bdc9b58fd98e3a55999f1094c.tar.bz2
perl-MDK-Common-7cb27275b7c6316bdc9b58fd98e3a55999f1094c.tar.xz
perl-MDK-Common-7cb27275b7c6316bdc9b58fd98e3a55999f1094c.zip
protect parenthesis in setVarsInSh and drop dead code (#47298)
-rw-r--r--NEWS4
-rw-r--r--lib/MDK/Common.pm.pl2
-rw-r--r--lib/MDK/Common/System.pm3
3 files changed, 6 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index d2bad49..73d6845 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Version 1.2.15 - 26 January 2009, by Pascal Terjan
+
+- protect parenthesis in setVarsInSh and drop dead code (#47298)
+
Version 1.2.14 - 1 October 2008, by Pascal "Pixel" Rigaux
- round_up(), round_down(): workaround "Illegal modulus zero" (#43165)
diff --git a/lib/MDK/Common.pm.pl b/lib/MDK/Common.pm.pl
index 3581430..6c54e4e 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.14";
+our $VERSION = "1.2.15";
1;
EOF
diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm
index b4f43c8..71b9bad 100644
--- a/lib/MDK/Common/System.pm
+++ b/lib/MDK/Common/System.pm
@@ -377,8 +377,7 @@ sub setVarsInShMode {
if ($val =~ /["`\$]/) {
$val =~ s/(')/\\$1/g;
$val = qq('$val');
- } elsif ($val =~ /['|\s\\]/) {
- $val =~ s/(["\\])/\\$1/g;
+ } elsif ($val =~ /[\(\)'|\s\\]/) {
$val = qq("$val");
}
"$_=$val\n";