Closed robobakery closed 7 years ago
Update: In Drab.Core (line 172 ~)
While combining key value pairs of form into queryParams format, several characters like '%' and '&' can cause the problem.
Introducing URI Encoding might be a fix.
def normalize_params(params) do
Enum.reduce(params, "", fn {k, v}, acc ->
acc <> k <> "=" <> v <> "&"
end)
|> String.trim_trailing("&")
|> Plug.Conn.Query.decode()
end
Thanks for your amzaing library that saved me a lot.
I would like to report a bug, while sending forms through socket. It seems like, several characters are making a confusion to parser.
for example, (1) % causes invalid www-form error (encoded form of ascii like %25 is okay) (2) & makes my input params to be divided.
and because of (2), when handling wyswig editor's innerHTML to be escaped also causes problems. (such as < etc ..)
here's my code snippet
and,, here's the test case
accordion_body: Default Text will be like< ;THIS> ;
finally, the sender.params
i hope this information could help . thank you.
original post