1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2025-02-07 07:07:05 +01:00

- [gemini] fix split when separator is at the end of a path.

This commit is contained in:
cage 2020-12-29 20:36:42 +01:00
parent 9876213933
commit 7a98df4a5a

View File

@ -285,7 +285,7 @@
(values certificate key))))
(defun percent-encode-path (path)
(let ((splitted (split "/" path)))
(let ((splitted (split "/" path :limit (1+ (length path)))))
(if splitted
(reduce (lambda (a b) (strcat a "/" (maybe-percent-encode b)))
splitted)