Skip to content

brontes3d/detect_potential_problems_with_html_safe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

raise warnings when ActiveSupport::SafeBuffer concats an unsafe string

We found this useful when Rails changed it’s behavior with html_safe. Having the explicit raise helped us find places that were getting escaped that shouldn’t be (such as chunks of html built by helpers).

Copyright © 2009-2010 3M. All rights reserved. Released under the MIT license.

Authored by Jacob Burkhart.

About

raise warnings when ActiveSupport::SafeBuffer concats an unsafe string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages