Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Grab the Topgear submission changes#7100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kkartunov merged 10 commits intodevelopfrommaster
Jun 20, 2025
Merged

Grab the Topgear submission changes#7100

kkartunov merged 10 commits intodevelopfrommaster
Jun 20, 2025

Conversation

jmgasper
Copy link
Collaborator

No description provided.

kkartunovand others added10 commitsFebruary 24, 2025 09:25
Prod release - Security issues - Community App PHASE 2
PROD RELEASE - Features in CA related to deprecating Submission Review UI app
PROD RELEASE - Topgear - Submission URL validation
PROD - Topgear challenges - Submissions Guidelines Text needs to be updated in submit page
PROD - Topgear challenges - Submissions urls
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',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The change from an array to a string forTOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS may affect how this configuration is used in the application. If the application logic expects an array, this change could lead to errors. Consider verifying that the application can handle a string with domains separated by| or update the logic accordingly.


isDomainAllowed(url){
constdomainReg=newRegExp(`^https?://(${config.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS.join('|')})/.+`);
constdomainReg=newRegExp(`^https?://(${config.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS})/.+`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The change fromjoin('|') to directly usingconfig.TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS might cause issues ifTOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS is an array. If it is intended to be a single string, ensure that it is formatted correctly as a regex pattern. Otherwise, if it is an array, the previous implementation usingjoin('|') is necessary to construct a valid regex pattern that matches any of the allowed domains.

@kkartunovkkartunov merged commit74bc5c9 intodevelopJun 20, 2025
9 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@ajeftsajeftsAwaiting requested review from ajeftsajefts is a code owner

@luizrrodriguesluizrrodriguesAwaiting requested review from luizrrodriguesluizrrodrigues is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@jmgasper@kkartunov@vas3a

[8]ページ先頭

©2009-2025 Movatter.jp