Skip to content

TinyMCE adds CR LF to its return content that will be transformed to "rn" in solution #1944

Closed
@tomolimo

Description

@tomolimo

Hello,

When adding simple text like

Test
of
multilines

in a ticket solution,

Then will get

Test
rn
of
rn
multilines

And when doing some spying on the HTTP traffic, one can see that tinyMCE is sending:
<p>Test</p>\r\n<p>of</p>\r\n<p>multilines</p>

And GLPI will transform this into
<p>Test</p>rn<p>of</p>rn<p>multilines</p>
due to Toolbox::stripslashes_deep() that uses stripslashes() which will delete any \, and left only the "rn" string.

Use of stripcslashes() will solve this issue,

thank you,
regards,
Tomolimo

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions