Skip to content

Wrong place of calling rawurldecode #2

Description

@landgrafhomyak

Currently rawurldecode called before splitting line by & (here):

    private static function convertInitData(string $initData): array
    {
        $initDataArray = explode('&', rawurldecode($initData));
        $needle        = 'hash=';
        $hash          = '';

But if user will add & to his first_name or last_name, this will cause additional wrong "entry" in $initDataArray and will fail validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions