From: yamaoka Date: Mon, 24 May 2004 22:43:43 +0000 (+0000) Subject: (mime-format-mailcap-command): Quote a file name which may contain spaces X-Git-Tag: flim-1_14_7~12 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e9f2f9a5aa31849f4d0c061d92c2841fb88c7b09;p=elisp%2Fflim.git (mime-format-mailcap-command): Quote a file name which may contain spaces using `shell-quote-argument' in order to pass it to the shell safely. --- diff --git a/ChangeLog b/ChangeLog index a80cde0..c392459 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-24 Len Trigg + + * mime-conf.el (mime-format-mailcap-command): Quote a file name + which may contain spaces using `shell-quote-argument' in order to + pass it to the shell safely. + 2004-05-10 Katsumi Yamaoka * eword-encode.el (mime-encode-header-in-buffer): Don't ignore a diff --git a/mime-conf.el b/mime-conf.el index 0550893..e2dbf77 100644 --- a/mime-conf.el +++ b/mime-conf.el @@ -1,6 +1,6 @@ ;;; mime-conf.el --- mailcap parser and MIME playback configuration -;; Copyright (C) 1997,1998,1999,2000 Free Software Foundation, Inc. +;; Copyright (C) 1997,1998,1999,2000,2004 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko ;; Created: 1997-06-27 @@ -222,7 +222,7 @@ may be: (error "'filename is not specified in situation.") (setq dest (concat dest (substring mtext p (1- i)) - file) + (shell-quote-argument file)) i (1+ i) p i) )))