Index: Source/core/html/parser/XSSAuditor.cpp |
diff --git a/Source/core/html/parser/XSSAuditor.cpp b/Source/core/html/parser/XSSAuditor.cpp |
index 57cab49a140d85313d3dcec702ff0b22b5468738..8b859f33c05858aaff2e094fc4df741de4420749 100644 |
--- a/Source/core/html/parser/XSSAuditor.cpp |
+++ b/Source/core/html/parser/XSSAuditor.cpp |
@@ -767,7 +767,7 @@ String XSSAuditor::canonicalizedSnippetForJavaScript(const FilterTokenRequest& r |
break; |
if (lastNonSpacePosition != kNotFound && startsOpeningScriptTagAt(string, foundPosition)) { |
- foundPosition = lastNonSpacePosition; |
+ foundPosition = lastNonSpacePosition + 1; |
break; |
} |
if (foundPosition > startPosition + kMaximumFragmentLengthTarget) { |