From af256bbf2bcee4da4ee67f2990d90aae40337d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Fri, 12 Jun 2015 13:56:10 +0200 Subject: [PATCH] Fixed script protection pattern which would not cover unclosed script tag. --- core/htmldataprocessor.js | 2 +- tests/core/htmldataprocessor.js | 12 ++++++++++-- tests/tickets/13393/1.html | 7 +++++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/core/htmldataprocessor.js b/core/htmldataprocessor.js index 4385ed65197..f7503b7d8de 100644 --- a/core/htmldataprocessor.js +++ b/core/htmldataprocessor.js @@ -869,7 +869,7 @@ var regexes = [ // Script tags will also be forced to be protected, otherwise // IE will execute them. - ( //gi ), + ( /|$)/gi ), //