form-urlencode doesn't encode slashes
|Reported by:||taylor_venable||Owned by:||sjamaan|
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.
Change History (7)
comment:1 Changed 6 years ago by taylor_venable
- Component changed from unknown to extensions
- Keywords uri-common added
comment:4 Changed 6 years ago by taylor_venable
- Resolution set to fixed
- Status changed from accepted to closed