diff --git a/config/default.js b/config/default.js index 1b8eeecdf..8f8f4d11a 100644 --- a/config/default.js +++ b/config/default.js @@ -473,5 +473,5 @@ module.exports = { ACCOUNT_SETTINGS_REDIRECT_URL: 'https://account-settings.topcoder-dev.com', INNOVATION_CHALLENGES_TAG: 'Innovation Challenge', PLATFORM_SITE_URL: 'https://platform.topcoder-dev.com', - TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS: ['wipro365.sharepoint.com', 'wipro365-my.sharepoint.com', 'wipro365-my.sharepoint.com.mcas.ms'], + TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS: 'wipro365.sharepoint.com|wipro365-my.sharepoint.com|wipro365-my.sharepoint.com.mcas.ms', }; diff --git a/src/shared/components/SubmissionPage/FilestackFilePicker/index.jsx b/src/shared/components/SubmissionPage/FilestackFilePicker/index.jsx index 8864968f2..9d828f637 100644 --- a/src/shared/components/SubmissionPage/FilestackFilePicker/index.jsx +++ b/src/shared/components/SubmissionPage/FilestackFilePicker/index.jsx @@ -136,7 +136,7 @@ class FilestackFilePicker extends React.Component { } isDomainAllowed(url) { - const domainReg = new RegExp(`^https?://(${config.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS.join('|')})/.+`); + const domainReg = new RegExp(`^https?://(${config.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS})/.+`); return !!url.match(domainReg); }