From 8be3014c78441348d601ebb7265c51d17fc1d4f9 Mon Sep 17 00:00:00 2001 From: Lars Pind Date: Thu, 1 Mar 2012 13:38:30 -0800 Subject: [PATCH] Fixed that SafeBuffer has changed in Rails 3.2.2 after an XSS security issue with select_options. --- lib/localized_country_select.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/localized_country_select.rb b/lib/localized_country_select.rb index b98ef22..d37659d 100644 --- a/lib/localized_country_select.rb +++ b/lib/localized_country_select.rb @@ -80,7 +80,7 @@ def country_options_for_select(selected = nil, priority_countries = nil,options= country_options += options_for_select(LocalizedCountrySelect::priority_countries_array(priority_countries,options), selected) country_options += "\n" end - return country_options + options_for_select(LocalizedCountrySelect::localized_countries_array(options), selected) + return country_options.html_safe + options_for_select(LocalizedCountrySelect::localized_countries_array(options), selected) end end