From: Glenn Morris Date: Fri, 8 Oct 2010 03:23:31 +0000 (-0700) Subject: * lisp/net/browse-url.el (browse-url-xdg-open): Shell-quote url. (Bug#7166) X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~131 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4adf61e9aaf46b23b7ea7e54c79725d5c3b45fb;p=emacs.git * lisp/net/browse-url.el (browse-url-xdg-open): Shell-quote url. (Bug#7166) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4c3d419d0aa..06313acc705 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-10-08 Glenn Morris + + * net/browse-url.el (browse-url-xdg-open): Shell-quote url. (Bug#7166) + 2010-10-07 Chong Yidong * cus-edit.el (custom-variable, custom-face): Doc fix. diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index d98c72570a4..65b45aecf3e 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -939,7 +939,7 @@ Galeon, Konqueror, Netscape, Mosaic, Lynx in an xterm, and then W3." (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