escape bio
This commit is contained in:
parent
3487a47511
commit
af0c7dea0f
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ let public_profile request =
|
||||||
[ [| Data.TEXT nick; Data.TEXT password; Data.TEXT email; Data.TEXT bio |]
|
[ [| Data.TEXT nick; Data.TEXT password; Data.TEXT email; Data.TEXT bio |]
|
||||||
] ->
|
] ->
|
||||||
Format.sprintf "nick = `%s`; password = `%s`; email = `%s`; bio = '%s'" nick
|
Format.sprintf "nick = `%s`; password = `%s`; email = `%s`; bio = '%s'" nick
|
||||||
password email bio
|
password email (Dream.html_escape bio)
|
||||||
| Ok _ -> "incoherent db answer"
|
| Ok _ -> "incoherent db answer"
|
||||||
| Error e -> Format.sprintf "db error: %s" (Rc.to_string e)
|
| Error e -> Format.sprintf "db error: %s" (Rc.to_string e)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue