kennym / cf7-to-api

LOOKING FOR MAINTAINER. Wordpress plugin to transmit contact form 7 entries to remote API using POST or GET
https://wordpress.org/plugins/cf7-to-api-basic-auth/
52 stars 30 forks source link

Handle single quotes #17

Closed chrisolesen closed 4 years ago

chrisolesen commented 4 years ago

Fix single quotes for record type json

kennym commented 4 years ago

LGTM.

Thank you for also bumping the version number! Will deploy a release later today.

NicoP-S commented 3 years ago

Hello,

I am struggeling with an textarea with linebreaks. These linebreaks does not get send via the API request (JSON).

Linebreaks are correcly escaped see: https://github.com/kennym/cf7-to-api/blob/master/includes/class-cf7-api-admin.php#L496-L498

But stripslashes which was added by this MR do remove all \n resulting in a strage text... $json = $this->parse_json( stripslashes ( $lead ) );

Can this change be reverted please?

kennym commented 3 years ago

@NicoP-S thanks for reporting this. I will revert this now

kennym commented 3 years ago

@NicoP-S change reverted in 1.4.8 - please let me know if you have any other issues.

NicoP-S commented 3 years ago

I just updated the plugin and now it works! Thanks :thumbsup: