auto escaping html in Rails to protect from XSS

by MichaƂ Kuklis on 29/07/2009

Tonight I found a plugin to auto escape html in order to protect from XSS attacks. I’m not sure why rails doesn’t do it out of the box (you have to use h() helper). Anyway the plugin is called xss_terminate and it can be found here. The cool thing about it is that now you can forget about h() :) .

There is 1 comment in this article:

  1. 31/07/2009Christoph Olszowka says:

    The escaping will be default in Rails 3.

Write a comment: