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

URL with unicode signs breaks down trackable urls

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.6, 4.7.9
    • Fix Version/s: 4.7.11
    • Component/s: CiviMail
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Method CRM_Mailing_BAO_Mailing->getPatterns() is used for extracting urls from content of mailing. The problem occurs when url contains any unicode sign.

      Example:
      localhost:8003/civicrm/?var1=państewko - where ń is special character in unicode

      results in civicrm_mailing_trackable_url.url:
      two urls!
      http://localhost:8003/civicrm/?var1=pa
      href="http://localhost:8003/civicrm/?var1=pa

      after patch:
      one valid url:
      http://localhost:8003/civicrm/?var1=państewko

      solution: add u modifier to regex pattern

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              scardinius Scardinius
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: