diff lisp/net/browse-url.el @ 110815:a9f5356546ca

* lisp/net/browse-url.el (browse-url-xdg-open): Shell-quote url. (Bug#7166)
author Glenn Morris <rgm@gnu.org>
date Thu, 07 Oct 2010 20:23:31 -0700
parents 7c4da622f181
children a6ae19bc27ec
line wrap: on
line diff
--- a/lisp/net/browse-url.el	Thu Oct 07 20:17:31 2010 -0700
+++ b/lisp/net/browse-url.el	Thu Oct 07 20:23:31 2010 -0700
@@ -939,7 +939,7 @@
   (interactive (browse-url-interactive-arg "URL: "))
   (call-process "/bin/sh" nil nil nil
 		"-c"
-		(concat "nohup xdg-open " url
+		(concat "nohup xdg-open " (shell-quote-argument url)
 			">/dev/null 2>&1 </dev/null")))
 
 ;;;###autoload
@@ -1571,5 +1571,4 @@
 
 (provide 'browse-url)
 
-;; arch-tag: d2079573-5c06-4097-9598-f550fba19430
 ;;; browse-url.el ends here