org-protocol: Fix for failing open-source subprotocol

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

TINYCHANGE
This commit is contained in:
Mario Martelli 2017-06-23 18:32:49 +02:00 committed by Nicolas Goaziou
parent a8d007db15
commit 5748615c48
1 changed files with 3 additions and 1 deletions

View File

@ -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
;; defaults to 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
(dolist (prolist org-protocol-project-alist)
(let* ((base-url (plist-get (cdr prolist) :base-url))