Merge pull request #3765 from overleaf/jpa-xss-6

[views] mitigate Angular XSS in subscription dashboard

GitOrigin-RevId: 4ac0c431d520957aabd53436ae29a30c2aef3870
This commit is contained in:
Jakob Ackermann 2021-03-17 12:46:21 +01:00 committed by Copybot
parent 001f7f0cc2
commit 58841ecbe9
4 changed files with 6 additions and 6 deletions

View file

@ -8,6 +8,6 @@ each affiliation in confirmedMemberAffiliations
|
| #{settings.appName} account as a confirmed member of
|
strong= affiliation.institution.name
strong(ng-non-bindable)= affiliation.institution.name
hr

View file

@ -5,7 +5,7 @@ each institution in managedInstitutions
p
| You are a manager of
|
strong= institution.name
strong(ng-non-bindable)= institution.name
p
a.btn.btn-primary(href="/metrics/institutions/" + institution.v1Id)
i.fa.fa-fw.fa-line-chart

View file

@ -2,7 +2,7 @@ each publisher in managedPublishers
p
| You are a manager of
|
strong= publisher.name
strong(ng-non-bindable)= publisher.name
p
a(href="/publishers/" + publisher.slug + "/hub")
i.fa.fa-fw.fa-user-circle

View file

@ -1,6 +1,6 @@
mixin teamName(subscription)
- if (subscription.teamName && subscription.teamName != '')
strong= subscription.teamName
strong(ng-non-bindable)= subscription.teamName
- else if (subscription.admin_id._id == user._id)
| a group account
- else