Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Are I18n yml files thought to be html_safe? (AWDwR3, section 13)

#3401

With the next XSS support, I'm finding that I need to do things like the following:

<h1><%=raw I18n.t('main.title') %></h1>

What should be discussed is whether or not the data found in I18N YAML files are thought to be html_safe!, or should be considered as plain text (and therefore escaped).

Related: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...

Reported by Sam Ruby · October 21st, 2009 @ 04:59 PM

State: committed
Milestone: none
Assigned to: Michael Koziarski Michael Koziarski
Importance: none