#9205 closed Bug (fixed)
HTMLDataProcessor attribute protection in protectSource method
Reported by: | Kyle Florence | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.3.4 |
Component: | General | Version: | 3.5.2 |
Keywords: | HasPatch | Cc: |
Description
The regular expression used for attribute matching is overly aggressive (it matches outside of HTML tags). This was resulting in some of the protection characters making their way to our final output (such as: "{C}" or "{cke_protected_1}").
Attachments (2)
Change History (13)
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.6.5 (SVN - trunk) → 3.5.2 |
Changed 12 years ago by
Attachment: | 9205.patch added |
---|
comment:2 Changed 12 years ago by
See attached. It was especially apparent in French, since there are a lot of words concatenated with a single quote.
comment:4 Changed 12 years ago by
Reduced TC:
- Paste this on source:
<p>A'B<!-- Comment -->C'D</p>
- Switch to wysiwyg: BUG: {cke_protected_1} will appear in the comment position.
- Switch back to source: BUG: {C} will be appended before the comment.
comment:5 Changed 11 years ago by
Version 3.6.4: The change is needed in the ckeditor.js file. I found the regex and changed it in this file and the problem was fixed.
comment:6 Changed 11 years ago by
Is this bug going to be addressed? I am seeing this in the 4.x branch as well.
comment:8 Changed 11 years ago by
Milestone: | → CKEditor 4.3.4 |
---|---|
Owner: | set to Piotrek Koszuliński |
Status: | confirmed → review |
Pushed branch:t/9205 on dev and tests. I guess that it's still not 100% correct, because it's regexp, but I couldn't find a TC that'd break this.
comment:9 Changed 11 years ago by
Status: | review → review_passed |
---|
comment:10 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed on master with git:5aba2ea on dev and 87f72be on tests. Patch fixed also #7805 and #8216.
This patch seems to fix "{C}" or "{cke_protected_1}". What is more important this patch seems fixes other problems with "{C}", "{cke_protected_1}": #7805, #8216, #7826.
@kflorence could you give us your HTML examples that you had problems with?