summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-10-30 03:57:01 +0000
committerNorbert Preining <preining@logic.at>2009-10-30 03:57:01 +0000
commitd5c1b9edc9c0a0c14191a00871f3a9f68a1818f3 (patch)
treecfce72973cb614212516fbe8e3e84396e16eadc9 /Master/tlpkg/TeXLive/TLUtils.pm
parentaa4c27a1c7205d81482caec4168e8f5ed60c5433 (diff)
fix for unsecure calls in menu items, the progs have to be quoted since
TEXDIR can empbed spaces git-svn-id: svn://tug.org/texlive/trunk@15905 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index bb6aeca29e0..7a2f094957c 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -1533,7 +1533,7 @@ sub _do_postaction_filetype {
my $texdir = `kpsewhich -var-value=SELFAUTOPARENT`;
chomp($texdir);
my $texdir_bsl = conv_to_w32_path($texdir);
- $cmd =~ s!^TEXDIR/!$texdir/!g;
+ $cmd =~ s!^("?)TEXDIR/!$1$texdir/!g;
&log("postaction $how filetype for " . $tlpobj->name .
": $name, $cmd\n");