Skip to content

Commit c10c7cd

Browse files
committed
Merge pull request phaserjs#2044 from rblopes/dont-prefix-data-urls
Prevent 'data:' URLs from being prefixed
2 parents af194d4 + 1485fd1 commit c10c7cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loader/Loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,7 @@ Phaser.Loader.prototype = {
20282028
return false;
20292029
}
20302030

2031-
if (url.substr(0, 4) === 'http' || url.substr(0, 2) === '//')
2031+
if (url.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/))
20322032
{
20332033
return url;
20342034
}

0 commit comments

Comments
 (0)