escape bio

This commit is contained in:
zapashcanon 2021-11-07 22:50:43 +01:00
parent 3487a47511
commit af0c7dea0f
No known key found for this signature in database
GPG key ID: 8981C3C62D1D28F1

View file

@ -120,7 +120,7 @@ let public_profile request =
[ [| Data.TEXT nick; Data.TEXT password; Data.TEXT email; Data.TEXT bio |]
] ->
Format.sprintf "nick = `%s`; password = `%s`; email = `%s`; bio = '%s'" nick
password email bio
password email (Dream.html_escape bio)
| Ok _ -> "incoherent db answer"
| Error e -> Format.sprintf "db error: %s" (Rc.to_string e)