From 4badf135967c03c402ef8fc636ac4968ac98e57c Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Wed, 4 Dec 2019 10:52:41 -0500 Subject: [PATCH] Use the correct function to unhex the URL string --- ox-hugo.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-hugo.el b/ox-hugo.el index 2c97ebf..c328f6f 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -2332,7 +2332,7 @@ PATH is the path to the image or any other attachment. INFO is a plist used as a communication channel." ;; (message "[ox-hugo attachment DBG] The Hugo section is: %s" (plist-get info :hugo-section)) ;; (message "[ox-hugo attachment DBG] The Hugo base dir is: %s" (plist-get info :hugo-base-dir)) - (let* ((path-unhexified (org-link-unescape path)) + (let* ((path-unhexified (url-unhex-string path)) (path-true (file-truename path-unhexified)) (exportables org-hugo-external-file-extensions-allowed-for-copying) (bundle-dir (and (plist-get info :hugo-bundle)