summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-08-29 19:32:50 -0600
committerEric Schulte <schulte.eric@gmail.com>2010-08-29 19:33:38 -0600
commitfdad92edd6c8919915eedce67da3b2571fee2543 (patch)
tree69919d1efa3f84470b5c8ff6b8135a4c23d82e2b
parent4b7c9136a71252c5fff1c8e3caf7e272a3b55d81 (diff)
downloadorg-mode-fdad92edd6c8919915eedce67da3b2571fee2543.tar.gz
ob-plantuml: wrapping in-file and out-file in shell-quote-argument
Thanks to Michael Gauland for pointing out this fix * lisp/ob-plantuml.el (org-babel-execute:plantuml): wrapping in-file and out-file in shell-quote-argument
-rw-r--r--lisp/ob-plantuml.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el
index 9959f40..c5045de 100644
--- a/lisp/ob-plantuml.el
+++ b/lisp/ob-plantuml.el
@@ -59,7 +59,10 @@ This function is called by `org-babel-execute-src-block'."
(in-file (org-babel-temp-file "plantuml-"))
(cmd (concat "java -jar "
(shell-quote-argument org-plantuml-jar-path)
- " -p " cmdline " < " in-file " > " out-file)))
+ " -p " cmdline " < "
+ (shell-quote-argument in-file)
+ " > "
+ (shell-quote-argument out-file))))
(unless (file-exists-p org-plantuml-jar-path)
(error "Could not find plantuml.jar at %s" org-plantuml-jar-path))
(with-temp-file in-file (insert (concat "@startuml\n" body "\n@enduml")))