emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 4743f948f8 09/15: Fix query string replace space


From: ELPA Syncer
Subject: [elpa] externals/kiwix 4743f948f8 09/15: Fix query string replace space with "_" in the concatenated with query URL.
Date: Wed, 7 Dec 2022 19:58:03 -0500 (EST)

branch: externals/kiwix
commit 4743f948f851103617152eefdb86949f7a0b905f
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    Fix query string replace space with "_" in the concatenated with query URL.
---
 kiwix.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index 74ceb31814..7142cd585b 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -337,7 +337,7 @@ Set it to ‘t’ will use Emacs built-in ‘completing-read’."
    ((and (eq kiwix-server-type 'docker-remote) (string-equal 
kiwix-server-api-version "v2"))
     (let* ((library (or selected-library (kiwix--get-library-name 
selected-library)))
            (url (concat (format "%s:%s" kiwix-server-url kiwix-server-port)
-                        "/" library "/A/" (url-hexify-string query)))
+                        "/" library "/A/" (replace-regexp-in-string " " "_" 
query)))
            (browse-url-browser-function kiwix-default-browser-function))
       (browse-url url)))
    ((and (eq kiwix-server-type 'docker-remote) (string-equal 
kiwix-server-api-version "v1"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]