diff options
Diffstat (limited to 'integrations/xss_test.go')
-rw-r--r-- | integrations/xss_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/xss_test.go b/integrations/xss_test.go index 1ce25e1bf5..d5ce94b0c6 100644 --- a/integrations/xss_test.go +++ b/integrations/xss_test.go @@ -16,7 +16,7 @@ import ( func TestXSSUserFullName(t *testing.T) { defer prepareTestEnv(t)() - user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}).(*user_model.User) + user := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2}) const fullName = `name & <script class="evil">alert('Oh no!');</script>` session := loginUser(t, user.Name) |