-
Bug
-
Resolution: Fixed
-
Highest
-
8.0.1
-
Severity 3 - Minor
-
1
-
Issue Summary
HTML Script elements with content of length greater than 4000 characters, are corrupted when rendered within a Macro.
Steps to Reproduce
- Create a plugin
- Implement a macro which renders a Velocity file
- Embed <script> element in Velocity file
- Ensure script element content is greater than 4000 characters
- Install plugin
- Create a page and add the macro
Expected Results
Script executes in browser.
Actual Results
Browser throws syntax error as content is split into 4000 character chunks surrounded by <![CDATA[}} and {{]]>.
Workaround
Split >4000 character scripts into multiple <4000 character scripts.
OR
Type // and add a newline before every 4000th character so the insertion of ]]><![CDATA[ does not corrupt your script.
- followed by
-
CONFSERVER-82785 Macro HTML bodies longer than 64k characters may exhibit split CDATA sections and/or corrupt JavaScript elements
-
- Closed
-