From 62e73daf2059ab1264fd69bbb2fd42cbce000f91 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 30 Oct 2012 14:47:43 +0100 Subject: [PATCH] Fixed for banner-codes, that does not enclose the src-attribute in quotes The HTML-standard allows, to write the attributes of an tag without enclosing quotes. That was not considered in the regular expression, that parses the " from OA_output[id] */ OA_output[id] = OA_output[id].slice(result[0].length,OA_output[id].length); - result = /src\s*=\s*['"]([^'"]*)['"]/i.exec(src); + result = /src\s*=\s*['"]?([^'"]*)['"]?\s/i.exec(src); if (result == null) { /** script-tag with inline-code: execute inline-code! */ result = /^\s*<.*$/m.exec(inline); -- 2.20.1