Explorar o código

org-protocol: Fix for failing open-source subprotocol

* (org-protocol-open-source): Make sure url is sanitised before
   processing.

TINYCHANGE
Mario Martelli %!s(int64=7) %!d(string=hai) anos
pai
achega
5748615c48
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lisp/org-protocol.el

+ 3 - 1
lisp/org-protocol.el

@@ -520,7 +520,9 @@ The location for a browser's bookmark should look like this:
   ;; As we enter this function for a match on our protocol, the return value
   ;; As we enter this function for a match on our protocol, the return value
   ;; defaults to nil.
   ;; defaults to nil.
   (let ((result nil)
   (let ((result nil)
-        (f (plist-get (org-protocol-parse-parameters fname nil '(:url)) :url)))
+	(f (org-protocol-sanitize-uri
+	    (plist-get (org-protocol-parse-parameters fname nil '(:url))
+		       :url))))
     (catch 'result
     (catch 'result
       (dolist (prolist org-protocol-project-alist)
       (dolist (prolist org-protocol-project-alist)
         (let* ((base-url (plist-get (cdr prolist) :base-url))
         (let* ((base-url (plist-get (cdr prolist) :base-url))