Special entities in entities_additional may break escaping #2448
Labels
good first issue
Relatively easy to fix. This is a perfect issue if you are willing to create a Pull Request.
status:confirmed
An issue confirmed by the development team.
target:minor
Any docs related issue that can be merged into a master or major branch.
type:bug
A bug.
Milestone
Type of report
Bug
Provide detailed reproduction steps (if any)
entities_additional
set to'apos'
amp'
into the editorExpected result
Source view shows
<p>amp'</p>
Actual result
Source view shows
<p>&undefined;&undefined;&undefined;'</p>
Other details
I pinned this down to be caused by
plugins/entities/plugin.js::buildTable
. During the replacement ofentities
in line 63 any special entity will be removed from the entities list together with the following,
. If there is no comma (because it is the last value) the resulting ends with a comma.This causes
entities.split(...)
to create an array with empty string as last value while thejoin
then creates a string ending with&;
which will be replaced by&;
when reading inner HTML.Due to this
a
,m
andp
will be interpreted as entities by CKE.The text was updated successfully, but these errors were encountered: