Skip to content

Commit 53a5428

Browse files
committed
PM-967 - makesure sharepoint urls have a path as well
1 parent 98cf7ee commit 53a5428

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

Lines changed: 1 addition & 1 deletion
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)