Permalink
Browse files

Merge pull request #14 from murphyslaw/rails3-safe-buffer-2

[FIX] Fixed unsafe string in `localized_country_options_for_select `

Closes #14
  • Loading branch information...
2 parents b8b27e7 + 1b73eeb commit 9973aa3e854d60b18b4a82357dcfa5323e49eba7 @karmi committed Jul 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/localized_country_select.rb
@@ -66,7 +66,7 @@ def localized_country_options_for_select(selected = nil, priority_countries = ni
country_options = "".html_safe
if priority_countries
country_options += options_for_select(LocalizedCountrySelect::priority_countries_array(priority_countries), selected)
- country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"
+ country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n".html_safe
return country_options + options_for_select(LocalizedCountrySelect::localized_countries_array - LocalizedCountrySelect::priority_countries_array(priority_countries), selected)
else
return country_options + options_for_select(LocalizedCountrySelect::localized_countries_array, selected)

0 comments on commit 9973aa3

Please sign in to comment.