Lucky/Crystal needs object taint/trust #1355
-
To solve the general issue of sanitizing input from the user before it is saved or rendered, Lucky or Crystal need For those unfamiliar with the Ruby implementation, params from the user got a taint bit set, which prevented them from being rendered without being filtered, unless the programmer insisted. I don't remember if the ORM would save tainted objects without first filtering them. Discussion of the Ruby taint/trust feature |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Uh, it turns out that Ruby has deleted this feature due to lack of interest. Straight-Shoota has an HTML safe string that might be of interest to us. |
Beta Was this translation helpful? Give feedback.
-
Hi @BrucePerens here is a Discord message I posted https://discord.com/channels/743896265057632256/743896265057632259/788097639987413012
Lucky sanitizes params, text, and HTML data attributes automatically. You can use
|
Beta Was this translation helpful? Give feedback.
Hi @BrucePerens here is a Discord message I posted https://discord.com/channels/743896265057632256/743896265057632259/788097639987413012