Open Power Template 2.x family
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#85 - CDATA, opt:literal with an CDATA output and HTML characters
Attached to Project:
Open Power Template
Opened by Skruppy (Skrupellos) - Friday, 15 May 2009, 09:16 GMT-8
Last edited by Zyx (Zyx) - Friday, 22 May 2009, 05:33 GMT-8
Opened by Skruppy (Skrupellos) - Friday, 15 May 2009, 09:16 GMT-8
Last edited by Zyx (Zyx) - Friday, 22 May 2009, 05:33 GMT-8
|
DetailsPROBLEM:
CDATA in an opt:literal with an CDATA output escapes HTML characters. This Bug is corresponding to http://bugs.invenzzia.org/task/54 . EXAMPLE: --- code --- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <opt:root> <script type="text/javascript"> <opt:literal type="comment_cdata"> <![CDATA[ alert("I'm not <b>evil</b>"); ]]> </opt:literal> </script> </opt:root> --- END code --- RESULT: --- code --- <script type="text/javascript"> /* <![CDATA[ */ alert("I'm not <b>evil</b>"); /* ]]> */ </script> --- END code --- EXPECTED: --- code --- <script type="text/javascript"> /* <![CDATA[ */ alert("I'm not <b>evil</b>"); /* ]]> */ </script> --- END code --- |
This task depends upon
Closed by Zyx (Zyx)
Friday, 22 May 2009, 05:33 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 119.
Friday, 22 May 2009, 05:33 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 119.
Comment by Zyx (Zyx) -
Friday, 22 May 2009, 05:09 GMT-8
Actually, it is not related to the specified task. opt:literal simply forgot to disable entities after removing the "cdata" marker from the nodes.