Fix for Rails security issue