Skip to content

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants