Patch for CVE-2013-0156

For details:
https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion