emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Quote path argument in org-latex
@ 2010-07-18  4:08 Gregory J. Grubbs
  2010-07-18  5:51 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Gregory J. Grubbs @ 2010-07-18  4:08 UTC (permalink / raw)
  To: emacs-orgmode


Patch quotes paths to protect from interpretation by the shell

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index b6a7769..156dbcf 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -836,7 +836,7 @@ when PUB-DIR is set, use this as the publishing directory."
     (with-current-buffer outbuf (erase-buffer))
     (message "Processing LaTeX file...")
     (if (and cmds (symbolp cmds))
-       (funcall cmds file)
+       (funcall cmds (shell-quote-argument file))
       (while cmds
        (setq cmd (pop cmds))
        (while (string-match "%b" cmd)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Quote path argument in org-latex
  2010-07-18  4:08 [PATCH] Quote path argument in org-latex Gregory J. Grubbs
@ 2010-07-18  5:51 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-07-18  5:51 UTC (permalink / raw)
  To: Gregory J. Grubbs; +Cc: emacs-orgmode

Applied, thanks

- Carsten

On Jul 18, 2010, at 6:08 AM, Gregory J. Grubbs wrote:

>
> Patch quotes paths to protect from interpretation by the shell
>
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index b6a7769..156dbcf 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -836,7 +836,7 @@ when PUB-DIR is set, use this as the publishing  
> directory."
>     (with-current-buffer outbuf (erase-buffer))
>     (message "Processing LaTeX file...")
>     (if (and cmds (symbolp cmds))
> -       (funcall cmds file)
> +       (funcall cmds (shell-quote-argument file))
>       (while cmds
>        (setq cmd (pop cmds))
>        (while (string-match "%b" cmd)
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-18  5:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-18  4:08 [PATCH] Quote path argument in org-latex Gregory J. Grubbs
2010-07-18  5:51 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).