Version check for CVE-2012-5664

Simple version check for [CVE-2012-5664](https://groups.google.com/d/topic/rubyonrails-security/DCNTNp_qjFM/discussion).