Skip to content

Commit bc52594

Browse files
authored
Merge pull request #7083 from topcoder-platform/PM-967_tg-url-check
PM-967 - make sure sharepoint urls have a path as well
2 parents 82218de + 53a5428 commit bc52594

File tree

1 file changed

+1
-1
lines changed
  • src/shared/components/SubmissionPage/FilestackFilePicker

1 file changed

+1
-1
lines changed

src/shared/components/SubmissionPage/FilestackFilePicker/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class FilestackFilePicker extends React.Component {
136136
}
137137

138138
isDomainAllowed(url) {
139-
const domainReg = new RegExp(`^https?://(${config.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS.join('|')})/`);
139+
const domainReg = new RegExp(`^https?://(${config.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS.join('|')})/.+`);
140140
return !!url.match(domainReg);
141141
}
142142

0 commit comments

Comments
 (0)