Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollback to HTML4 sanitizer #1355

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Rollback to HTML4 sanitizer #1355

merged 1 commit into from
Oct 24, 2023

Conversation

SebouChu
Copy link
Member

@SebouChu SebouChu commented Oct 24, 2023

Par la mise à jour en Rails 7.1, Action View utilise désormais Rails::HTML5::Sanitizer pour toutes ses méthodes de sanitization (sanitize, strip_tags, etc.)

Ceci a causé un problème, notamment au niveau des textareas, où en insérant un espace insécable :

  • Après enregistrement, on se retrouve un   dans le champ de texte
  • Dans le static, on se retrouve avec  

Cette PR sert de quickfix pour retrouver le fonctionnement antérieur, mais il faudra enquêter pour ne pas avoir le problème avec le nouveau sanitizer

@pabois pabois merged commit 8aac7c3 into main Oct 24, 2023
3 checks passed
@pabois pabois deleted the rollback-html4-sanitizer branch October 24, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants