From 7e0b3b39e75422bd0c790c573dcd574226a702a5 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 3 Sep 2021 13:38:37 -0700 Subject: [PATCH] Oops, right, 150 is a size too --- api/outfitImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/outfitImage.js b/api/outfitImage.js index d93b5d2..8f3275b 100644 --- a/api/outfitImage.js +++ b/api/outfitImage.js @@ -50,7 +50,7 @@ const VALID_LAYER_URLS = [ /^https:\/\/(impress-asset-images\.openneo\.net|impress-asset-images\.s3\.amazonaws\.com)\/(biology|object)\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[0-9]+\/(150|300|600)x(150|300|600)\.png(\?[a-zA-Z0-9_-]+)?$/, /^http:\/\/images\.neopets\.com\/cp\/(bio|object|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+\.(svg|png)(\?.*)?$/, // NOTE: We don't validate the layer's libraryUrl, because assetImage performs validation better than we could! - /^https:\/\/impress-2020\.openneo\.net\/api\/assetImage\?libraryUrl=[^&]+(&size=(300|600))?$/, + /^https:\/\/impress-2020\.openneo\.net\/api\/assetImage\?libraryUrl=[^&]+(&size=(150|300|600))?$/, ]; async function handle(req, res) {