Browse Source

org-protocol: Fix for silently failing open-source subprotocol

* (org-protocol-open-source): Tests URL against base-url and not the
  filename.

TINYCHANGE
Mario Martelli 7 years ago
parent
commit
cbcd714b23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-protocol.el

+ 1 - 1
lisp/org-protocol.el

@@ -556,7 +556,7 @@ The location for a browser's bookmark should look like this:
 		      ;; Try to match a rewritten URL and map it to
 		      ;; a real file.  Compare redirects without
 		      ;; suffix.
-		      (when (string-match-p (car rewrite) f2)
+		      (when (string-match-p (car rewrite) f1)
 			(throw 'result (concat wdir (cdr rewrite))))))))
 	      ;; -- end of redirects --