Skip to content

returnTo not URL-encoded #13596

Open
Open

Description

@gergelyk

Value of /oauth/callback?returnTo= doesn't seem URL-encoded. This may give unexpected results when value is an URL that itself contains special characters, qurery params, etc.

Perhaps the fix can be applied here:

- redirect_uri: `${getAppRoot()}/oauth/callback?returnTo=${returnTo}`,,
+ redirect_uri: `${getAppRoot()}/oauth/callback?returnTo=${encodeURIComponent(returnTo)}`,

This needs to be verified.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions