• Resolved wordpresslover7

    (@wordpresslover7)


    Hi,

    I use post get method to send API data.
    My API URL ends with “&” sign

    First field is mapped correctly in dashborad however in sent data plugin adds “?” at the beginning of the first mapped field. Next mapped fields work perfectly. Technically first field is being mapped incorrectly as “?name-of-the-mapped-field” because “?” magically appears when the form is sent.

    My API URL: example.com/sass_ks.php?action=super_registration&verify=sdfsdfsdf4234dsf34d23dk&

    First field mapped:
    Your-name
    name-of-the-mapped-field

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wordpresslover7

    (@wordpresslover7)

    Probably this function does not work properly (location class-cf7-to-any-api-admin.php) in admin folder:

    $url = strpos( ‘?’ , $url ) ? $url.’&’.$data_string : $url.’?’.$data_string;

    Thread Starter wordpresslover7

    (@wordpresslover7)

    I tried to fix that function but it still does not work correctly for some reason.

    $url = (strpos( '?' , $url )!==false) ? $url.'&'.$data_string : $url.'?'.$data_string;

    Plugin Contributor Mayur Prajapati

    (@mayur8991)

    Hello @wordpresslover7

    Thanks for using our plugin
    Please update to latest version We have fixed the issue in our latest release.

    Thanks for letting us know the issue.
    We would be happy if you rate our plugin & Keep supporting us

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin adds itself “?” to the first mapped field’ is closed to new replies.