mirror of https://codeberg.org/cage/tinmop/
- [gemini] encoded the input string before making the request.
This commit is contained in:
parent
b37c590265
commit
d0a9b6583a
|
@ -512,13 +512,15 @@
|
|||
(flet ((on-input-complete (input)
|
||||
(when (string-not-empty-p input)
|
||||
(db-utils:with-ready-database (:connect nil)
|
||||
(request (gemini-parser:make-gemini-iri host
|
||||
path
|
||||
:query input
|
||||
:port port
|
||||
:fragment fragment)
|
||||
:certificate-key certificate-key
|
||||
:certificate certificate)))))
|
||||
(let ((encoded-input (maybe-percent-encode input)))
|
||||
(request (gemini-parser:make-gemini-iri host
|
||||
path
|
||||
:query
|
||||
encoded-input
|
||||
:port port
|
||||
:fragment fragment)
|
||||
:certificate-key certificate-key
|
||||
:certificate certificate))))))
|
||||
(ui:ask-string-input #'on-input-complete
|
||||
:hide-input hide-input
|
||||
:prompt (format nil
|
||||
|
|
Loading…
Reference in New Issue