Skip to content

Commit d3cb254

Browse files
authored
Production Release (#708)
Sprint 44 Issues: December 2024 Separation Report - Remove User #702 Static Code Vulnerability: js/incomplete-URL-substring-sanitization #698
1 parent 76d497b commit d3cb254

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ alembic==1.10.2
1010
PyMuPDF==1.21.1
1111
pydantic-settings==2.0.2
1212
email-validator==2.0.0.post2
13-
python-multipart==0.0.7
13+
python-multipart==0.0.18

training-front-end/src/plugins/uswds_links.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ export function processLinksPlugin() {
1818
// these will all be local, so ignore
1919
return
2020
}
21-
22-
if (!(domain.hostname === 'gsa.gov' || domain.hostname === 'www.gsa.gov'|| domain.protocol === 'mailto:')) {
21+
const internalHost = [
22+
'gsa.gov',
23+
'www.gsa.gov'
24+
]
25+
if (!(internalHost.includes(domain.hostname) || domain.protocol === 'mailto:')) {
2326
properties.className += ' usa-link--external'
2427
}
2528

0 commit comments

Comments
 (0)