Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18687

Non-ASCII characters cause editor to crash on save.

    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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bardi.harborow Bardi Harborow
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified