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

When CRM.alert falls back to standard JS alert it should strip html

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.30
    • Fix Version/s: 4.7.33
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Sometimes CRM.alert() is passed a string which includes html tags. In certain contexts this will not render properly because it falls back to a standard JS alert box. Solution is to strip the HTML in this case.

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              naomi Naomi Rosenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: