Skip to content

Commit 6aae359

Browse files
authored
Merge pull request #7097 from topcoder-platform/PM-967_tg-submission-urls
PM-967 - keep env var as string
2 parents a94cb2f + 5e04220 commit 6aae359

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,5 +473,5 @@ module.exports = {
473473
ACCOUNT_SETTINGS_REDIRECT_URL: 'https://account-settings.topcoder-dev.com',
474474
INNOVATION_CHALLENGES_TAG: 'Innovation Challenge',
475475
PLATFORM_SITE_URL: 'https://platform.topcoder-dev.com',
476-
TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS: ['wipro365.sharepoint.com', 'wipro365-my.sharepoint.com', 'wipro365-my.sharepoint.com.mcas.ms'],
476+
TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS: 'wipro365.sharepoint.com|wipro365-my.sharepoint.com|wipro365-my.sharepoint.com.mcas.ms',
477477
};

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})/.+`);
140140
return !!url.match(domainReg);
141141
}
142142

0 commit comments

Comments
 (0)