diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index a6633eafa..0133dc320 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -234,6 +234,12 @@ describe ApplicationHelper do person_link(@person).should include @person.diaspora_handle end + + it "should not allow basic XSS/HTML" do + @person.profile.first_name = "I'm

Evil" + @person.profile.last_name = "I'm

Evil" + person_link(@person).should_not include("

") + end end context 'performance' do before do