From 30f905929b495032be29544ee1b60e691b7d9f7d Mon Sep 17 00:00:00 2001 From: Sawood Alam Date: Sun, 14 Oct 2018 14:41:29 -0400 Subject: [PATCH] Add support for rewriting absolute URLs in meta refresh --- ipwb/assets/reconstructive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipwb/assets/reconstructive.js b/ipwb/assets/reconstructive.js index fa1ff36d..4f5565f3 100644 --- a/ipwb/assets/reconstructive.js +++ b/ipwb/assets/reconstructive.js @@ -19,7 +19,7 @@ class Reconstructive { constructor(config) { this.NAME = 'Reconstructive'; - this.VERSION = '0.7.0'; + this.VERSION = '0.7.1'; this.id = `${this.NAME}:${this.VERSION}`; @@ -43,7 +43,7 @@ class Reconstructive { this._regexps = { urimPattern: new RegExp(`^${this.urimPattern.replace('', '(\\d{14})').replace('', '(.*)')}$`), - absoluteReference: new RegExp(`(<(iframe|a).*?\\s+(src|href)\\s*=\\s*["']?)(https?:\/\/[^'"\\s]+)(.*?>)`, 'ig'), + absoluteReference: new RegExp(`(<(iframe|a|meta).*?\\s+(src|href|content\\s*=\\s*["']?\\s*\\d+\\s*;\\s*url)\\s*=\\s*["']?)(https?:\/\/[^'"\\s]+)(.*?>)`, 'ig'), bodyEnd: new RegExp('<\/(body|html)>', 'i') };