@@ -292,7 +292,7 @@ def test_html_escaping
292
292
response = Typhoeus . post ( "https://127.0.0.1:9081/api-umbrella/v1/users.json" , http_options . deep_merge ( non_admin_key_creator_api_key ) . deep_merge ( {
293
293
:headers => { "Content-Type" => "application/x-www-form-urlencoded" } ,
294
294
:body => {
295
- :user => FactoryBot . attributes_for ( :api_user , :email => "foo<script> &[email protected] " , :first_name => "Test&First" , :last_name => "Test&Last" ) ,
295
+ :user => FactoryBot . attributes_for ( :api_user , :email => "foo&[email protected] " , :first_name => "Test&First" , :last_name => "Test&Last" ) ,
296
296
:options => { :send_welcome_email => true } ,
297
297
} ,
298
298
} ) )
@@ -309,12 +309,12 @@ def test_html_escaping
309
309
assert_match ( "Hi,</p>" , message . fetch ( "HTML" ) )
310
310
assert_match ( "Hi," , message . fetch ( "Text" ) )
311
311
312
- assert_match ( "Your API key for <strong>foo<script>& amp;[email protected] </strong> is:</p>" , message . fetch ( "HTML" ) )
313
- assert_match ( "Your API key for foo<script> &[email protected] is:" , message . fetch ( "Text" ) )
312
+ assert_match ( "Your API key for <strong>foo&[email protected] </strong> is:</p>" , message . fetch ( "HTML" ) )
313
+ assert_match ( "Your API key for foo&[email protected] is:" , message . fetch ( "Text" ) )
314
314
315
315
# Support footer
316
- assert_match ( "Account Email: foo<script>& amp;[email protected] " , message . fetch ( "HTML" ) )
317
- assert_match ( "Account Email: foo<script> &[email protected] " , message . fetch ( "Text" ) )
316
+ assert_match ( "Account Email: foo&[email protected] " , message . fetch ( "HTML" ) )
317
+ assert_match ( "Account Email: foo&[email protected] " , message . fetch ( "Text" ) )
318
318
319
319
assert_match ( "Account ID: #{ user . id } " , message . fetch ( "HTML" ) )
320
320
assert_match ( "Account ID: #{ user . id } " , message . fetch ( "Text" ) )
0 commit comments