CRM-12738 Handle strings which contain ampersands in REST API

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.3.3
    • Fix Version/s: Unscheduled
    • Component/s: CiviCRM API
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Funding Source:
      Needs Funding

      Description

      Correctly handle parameters which contain ampersands in REST requests.

        Attachments

          Activity

          [CRM-12738] Handle strings which contain ampersands in REST API
          xavier dutoit added a comment -

          Hi,

          I'm assuming it's about url encoding and the params in get?

          if you use POST instead of GET, it will/should work

          If you url encode the param, should work too

          ie. I don't think we do anything magic, just the regular issues with http encoding, am I misunderstanding something?

          Chris Burgess added a comment -

          We were using the API to generate CiviCRM mailings, and this was required at the time to post chunks of HTML via API to CiviCRM.

          Pull req https://github.com/civicrm/civicrm-core/pull/926 should have been included with this ticket originally, that will show you the change we applied to work around the issue.

            People

            • Assignee:
              xavier dutoit
              Reporter:
              Chris Burgess

              Dates

              • Created:
                Updated: