mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #12040 from wojtekmaj/replace-non-inclusive
Replace non-inclusive "whitelist" term with "allowlist"
This commit is contained in:
commit
fe3df495cc
4 changed files with 5 additions and 5 deletions
|
@ -363,7 +363,7 @@ function isSameOrigin(baseUrl, otherUrl) {
|
|||
return base.origin === other.origin;
|
||||
}
|
||||
|
||||
// Checks if URLs use one of the whitelisted protocols, e.g. to avoid XSS.
|
||||
// Checks if URLs use one of the allowed protocols, e.g. to avoid XSS.
|
||||
function _isValidProtocol(url) {
|
||||
if (!url) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue