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

Word replacements can't deal with hyperlinks

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.6
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Trying to change the text of a hyperlink in a message (add a new participant) is not possible via templates and word replacement fails because the html of the link is passed through urlencode() on its way to the DB, so it never matches the string from the relevant PHP file.

      This patch alters the HTML quickforms package to add the new and old word replacement fields to the list of ones that should not be filtered to encode HTML characters.

      Now, sorting the link out works. Although the text could have been changed with a wildcard replacement, the client wanted to remove that link altogether, as well as the preceding text, which meant matching the whole thing.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mattgibson Matt Gibson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: