#8216 closed Bug (fixed)
Source protection doesn't work properly in some cases
Reported by: | Wiktor Walc | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.3.4 |
Component: | General | Version: | 3.5.2 |
Keywords: | Cc: | contact@… |
Description
The default protection of <SCRIPT> tags and comments doesn't seem to work properly in certain cases, when <SCRIPT>
tag is followed by a comment.
Steps to reproduce
- Paste the following source code:
<p> <SCRIPT LANGUAGE="JavaScript"> //' </SCRIPT><!-- comment --><SCRIPT LANGUAGE="JavaScript"> //' </SCRIPT></p>
- Switch to wysiwyg mode and back
- Result: code is changed into:
<p> <SCRIPT LANGUAGE="JavaScript"> //' </SCRIPT>{C}{C}{C}<!-- comment --><SCRIPT LANGUAGE="JavaScript"> //' </SCRIPT></p>
(an extra {C}
is added everytime when swiching to source and back). Also an extra text {cke_protected_1}
is displayed in wysiwyg mode.
Note: it is a reduced example made from a more complicated sample taken from a live website.
Change History (9)
comment:1 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | → 3.5.2 |
comment:2 Changed 13 years ago by
Another example from #8402 which was marked as duplicate.
<a href="http://en.wikipedia.org/wiki/Fairy_tale/<!--#echo var='DOCUMENT_NAME' -->" title="Fairy tale">fairy tale</a>
comment:8 Changed 11 years ago by
Milestone: | → CKEditor 4.3.4 |
---|---|
Resolution: | → fixed |
Status: | confirmed → closed |
Fixed by #9205.
This issue has been reproducible from rev [6457].
NOTE: [6457] is from CKE 3.5.2 but if you check release versions you will be able to reproduce this issue from CKE 3.5.3. Maybe this rev was simply not included in 3.5.2. Anyway I have set 3.5.2 version.