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

Changes " with \" #51

Open TonyTakeOff opened 2 years ago

TonyTakeOff commented 2 years ago

Hi, I'm trying 1.4.11 in API integration, using JSON, when I save, editor changes every " with \". API call fails.

AroraAsh commented 2 years ago

47 Check this closed issue.

davITnemec commented 2 years ago

@AroraAsh and @TonyTakeOff I have the same issue and unfortunately, #47 doesn't offer a working solution. I've tried to add to class-cf7-api-admin.php stripslashes before JSON and XML has proceeded but the issue still persists.

Maybe @mariovalney would knows? He did the last fix for showing proper settings which works perfectly (thank you man!), but when the XML is saved, the "\" are added automatically. :-(

image

davITnemec commented 2 years ago

Ha, this helped me. Can you try it on your site @TonyTakeOff, please? image

mariovalney commented 2 years ago

Hi @davITnemec !

In WP I use wp_unslash().

For example.