Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 4.7.7
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
The mailing editor does not fail gracefully in the case of non-ASCII characters. After spending 2 hours debugging an email that would hang while saving, I discovered a stray `Line Separator (U+2028)`. This causes a JavaScript crash in `ang/crmUtil.js` on line 31, which tries to `eval` some JSON. The character causes a syntax error.
A possible fix would be to replace `eval` with `JSON.parse`, but I have not tested it, so it may still crash later on even with this.