Support HTTPS asset URLs
There are a couple spots where we parse SWF URLs to get the ID out! Most visibly, our Support tools were crashing on it. And internally, manifest loading wasn't working. (I'm not sure if this got caught or if it caused crashes in user space? I didn't see them when wearing a failing item) Anyway, fixed now!
This commit is contained in:
parent
9e222f3bf8
commit
02d7cf73bb
2 changed files with 2 additions and 2 deletions
|
@ -620,7 +620,7 @@ function AppearanceLayerSupportModalRemoveButton({
|
|||
);
|
||||
}
|
||||
|
||||
const SWF_URL_PATTERN = /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/(.+?)_([a-z0-9]+)\.swf$/;
|
||||
const SWF_URL_PATTERN = /^https?:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/(.+?)_([a-z0-9]+)\.swf$/;
|
||||
|
||||
function convertSwfUrlToPossibleManifestUrls(swfUrl) {
|
||||
const match = new URL(swfUrl, "http://images.neopets.com")
|
||||
|
|
|
@ -34,7 +34,7 @@ async function loadAssetManifest(swfUrl) {
|
|||
};
|
||||
}
|
||||
|
||||
const SWF_URL_PATTERN = /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/(.+?)_([a-z0-9]+)\.swf$/;
|
||||
const SWF_URL_PATTERN = /^https?:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/(.+?)_([a-z0-9]+)\.swf$/;
|
||||
|
||||
function convertSwfUrlToPossibleManifestUrls(swfUrl) {
|
||||
const match = new URL(swfUrl, "http://images.neopets.com")
|
||||
|
|
Loading…
Reference in a new issue