json params need slashes stripped
-
We are using Contact7 integration to push data from one site to a backend Civi site. Currently running Civi 5.73.3. We recently noticed that records were not getting pushed successfully, though I’m not certain at what point it broke down.
I traced the issue to how the json params are passed to the REST API. They are passed with slashes, which means the json_decode call in CRM_Utils_REST::buildParamList() fails and consequently the API call fails. I implemented a temporary fix by running stripslashes on the raw json params before decoding. But I’m thinking the fix should really come from the integration plugin — we need to strip slashes before passing the json params to the REST API call.
- The topic ‘json params need slashes stripped’ is closed to new replies.