Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.10 EE GA1, 7.0.0 DXP GA1
-
7.0.x, 6.2.x
-
Committed
-
1
-
3
Description
Description:
Adding special characters, such as the line separator character: (U+2028), causes javascript errors. This is due to how javascript utilizes this character.
References:
- http://www.fileformat.info/info/unicode/char/2028/index.htm
- https://www.ecma-international.org/ecma-262/5.1/#sec-7.3
Users can insert these line separators, depending on the document editor that they use.
For example, I was able to reproduce this using the pre-installed app called Pages on the macbook. To insert a line separator, simply press "Shift + Enter" instead of "Enter" when going to the next line.
Steps to Reproduce:
Errors in Title Field
- Navigate to Content > Web Content
- Click [+] > Basic Web Content
- Copy into the Title field:
abc 123
- If the string above does not work, generate a string with a line separator if your document editor uses (U+2028) for it's line separator.
- Click Save as Draft.
- Try to edit the article and open the browser console
Errors in Content Field
- Navigate to Content > Web Content
- Click [+] > Basic Web Content
- Copy into the Content field:
abc 123
- If the string above does not work, generate a string with a line separator if your document editor uses (U+2028) for it's line separator.
- Click Save as Draft.
- Try to edit the article and open the browser console
Expected Results: Edit article page loads with the proper title/content fields and no javascript errors.
Actual Results: Cannot edit article (content no longer available) and javascript errors are logged.
Attachments
Issue Links
- is related to
-
LPS-69750 Further improve HtmlImpl.escape(String, int) performance
- Closed