Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix a small bug of JsonValidation #91237

Merged
merged 1 commit into from
Feb 25, 2020
Merged

Fix a small bug of JsonValidation #91237

merged 1 commit into from
Feb 25, 2020

Conversation

PMExtra
Copy link
Contributor

@PMExtra PMExtra commented Feb 23, 2020

The origin condition expression (!strings.startsWith(uri, 'https:/') && strings.startsWith(uri, 'https:/')) is always false.
According to the context code, it should be (!strings.startsWith(uri, 'http://') && !strings.startsWith(uri, 'https://')) instead.

The origin condition expression `(!strings.startsWith(uri, 'https:/') && strings.startsWith(uri, 'https:/'))` is always false.
According to the context code, it should be `(!strings.startsWith(uri, 'http://') && !strings.startsWith(uri, 'https://'))` instead.
@aeschli aeschli merged commit 8d7d2f6 into microsoft:master Feb 25, 2020
@aeschli aeschli added this to the February 2020 milestone Feb 25, 2020
@aeschli
Copy link
Contributor

aeschli commented Feb 25, 2020

Thanks @PMExtra !
In fact not only http and https URIs are allowed, but also URIs from vscode resource providers. I'm going to update the check.

@PMExtra
Copy link
Contributor Author

PMExtra commented Feb 26, 2020

@aeschli Yes, I considered this situation.

This is the latest else if branch, the relative path (extension resources) has been handled before it.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants