From: Kai Moritz Date: Tue, 30 Oct 2012 13:47:43 +0000 (+0100) Subject: Fixed for banner-codes, that does not enclose the src-attribute in quotes X-Git-Tag: 0.1.0~5 X-Git-Url: https://juplo.de/gitweb/?p=openx;a=commitdiff_plain;h=62e73daf2059ab1264fd69bbb2fd42cbce000f91 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);