guard against spaces in filenames inside rclokulnote and rcldoc filters

This commit is contained in:
Jean-Francois Dockes 2015-04-17 13:12:01 +02:00
parent 12d1de2e9e
commit 47b1d77c5d
2 changed files with 3 additions and 3 deletions

View File

@ -154,12 +154,12 @@ if test $? -eq 1 ; then
if test X"$mtype" = Xtext/rtf; then
# RTF document disguising as msword either because it has a .doc
# extension or because it's an attachment with a wrong mime.
exec `dirname $0`/rclrtf $infile
exec `dirname $0`/rclrtf "$infile"
fi
if test X"$mtype" = Xtext/plain; then
# Someone gave a .doc ext to their texts. Happens...
exec `dirname $0`/rcltext $infile
exec `dirname $0`/rcltext "$infile"
fi
if test X"$mtype" = Xapplication/msword; then

View File

@ -84,7 +84,7 @@ umask 77
checkcmds xsltproc
xsltproc --novalid --nonet - $infile <<EOF
xsltproc --novalid --nonet - "$infile" <<EOF
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">