diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 08e4648e3..c06ca09bd 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -124,7 +124,7 @@ module ApplicationHelper
end
def person_image_tag(person, size=:thumb_small)
- "".html_safe
+ "
".html_safe
end
def person_link(person)
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index 440ccb025..a6633eafa 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -41,6 +41,14 @@ describe ApplicationHelper do
person_image_link(@person).should include(person_path(@person))
end
end
+
+ describe "#person_image_tag" do
+ it "should not allow basic XSS/HTML" do
+ @person.profile.first_name = "I'm