Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripping Unicode null character from result so it does not affect pr… #257

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

robmyers82
Copy link

…operty names

@FawadNL
Copy link

FawadNL commented Mar 15, 2021

Hi @robmyers82
The issue is actually happening before that in createRequest line 240, which is adding slashes. We simply stripped the slashes with stripslashes() to fix it permanently for all scenarios:

if ($hasData) {
    $body = \stripslashes($data);
    \curl_setopt($this->ch, CURLOPT_POSTFIELDS, $body);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants