From e4adf61e9aaf46b23b7ea7e54c79725d5c3b45fb Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 7 Oct 2010 20:23:31 -0700 Subject: [PATCH] * lisp/net/browse-url.el (browse-url-xdg-open): Shell-quote url. (Bug#7166) --- lisp/ChangeLog | 4 ++++ lisp/net/browse-url.el | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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