[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #373: form-urlencode doesn't encode slashes
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #373: form-urlencode doesn't encode slashes |
Date: |
Thu, 09 Sep 2010 17:20:08 -0000 |
#373: form-urlencode doesn't encode slashes
----------------------------+-----------------------------------------------
Reporter: taylor_venable | Owner:
Type: defect | Status: new
Priority: major | Milestone: 4.7.0
Component: unknown | Version: 4.6.0
Keywords: |
----------------------------+-----------------------------------------------
Using `form-urlencode` (and hence, `http-client` when a function such as
`with-input-from-request` is given an alist) doesn't encode slashes in
parameter values. For example:
{{{
#;2> (form-urlencode '(("foo" . "<p>hello</p>")))
"foo=%3Cp%3Ehello%3C/p%3E"
}}}
This has caused some problems for me when receiving ends don't process the
slash correctly. I worked around it by calling `uri-encode-string`
directly (which does escape the slash) rather than having `http-client` do
the encoding of an alist for me automatically.
--
Ticket URL: <http://bugs.call-cc.org/ticket/373>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #373: form-urlencode doesn't encode slashes,
Chicken Trac <=