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

html2text munges hrefs containing tokens

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.8
    • Fix Version/s: 4.3.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The html2text package is used to produce a plain text version of HTML emails that don't have a separate plain text version.

      If a token such as

      {action.unsubscribeUrl} is used in the body or footer, html2 text incorrectly prepends the base site URL to the token (e.g., "http://example.com/{action.unsubscribeUrl}

      "), which results in an incorrect URL in the final email.

      Patch attached.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              keith@wellebee.com Keith Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: