diff --git a/app/assets/javascripts/widgets/flash-messages.js b/app/assets/javascripts/widgets/flash-messages.js index 5c2dcf7e4..377120991 100644 --- a/app/assets/javascripts/widgets/flash-messages.js +++ b/app/assets/javascripts/widgets/flash-messages.js @@ -19,7 +19,7 @@ .html($("
", { 'class': "message" }) - .html(result.notice)) + .text(result.notice)) .prependTo(document.body); diff --git a/features/desktop/connects_users.feature b/features/desktop/connects_users.feature index 62c860e42..efa6f4a05 100644 --- a/features/desktop/connects_users.feature +++ b/features/desktop/connects_users.feature @@ -44,6 +44,19 @@ Feature: following and being followed When I am on the home page Then I should see "I am ALICE" + Scenario: I follow a malicious user + When I sign in as "bob@bob.bob" + And I go to the edit profile page + And I fill in the following: + | profile_first_name |