From e817ba705b6a57f665cbce5c572392f6133ec218 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 24 Sep 2020 08:30:39 -0700 Subject: [PATCH] add more valid urls to asset proxy specifically, I found this one: http://images.neopets.com/cp/items/data/000/000/484/484412_92058359da/484412_HTML5%20Canvas.js --- api/assetProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/assetProxy.js b/api/assetProxy.js index 751c2d2..fc6db08 100644 --- a/api/assetProxy.js +++ b/api/assetProxy.js @@ -6,7 +6,7 @@ const streamPipeline = util.promisify(stream.pipeline); const VALID_URL_PATTERNS = [ /^http:\/\/images\.neopets\.com\/items\/[a-zA-Z0-9_ -]+\.gif$/, - /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\/[a-zA-Z0-9_\-\/]+\.(svg|png|js)(\?[0-9]*)?$/, + /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\/[a-zA-Z0-9_ \-\/]+\.(svg|png|js)(\?[0-9]*)?$/, /^http:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-f0-9_]+\.swf$/, ];