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

urldecode in parse Payload from ServerRequest cause error in certain scenarios #13

Open
amoseev opened this issue Dec 23, 2022 · 0 comments

Comments

@amoseev
Copy link

amoseev commented Dec 23, 2022

Hello,
urldecode in slack-php/slack-app-framework/src/Contexts/Payload.php:44

In same cases urldecode + json_decode not work and cause error: Control character error, possibly incorrectly encoded

Example to reproduce simplest way:

        $data = [
            "text" => "<%12>"
        ];
        $jsonString = json_encode($data);
        $payload = json_decode(urldecode($jsonString), true, 512, JSON_THROW_ON_ERROR);

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

No branches or pull requests

1 participant