Encode query part of destination redirect url

Created on 29 October 2020, about 4 years ago
Updated 21 November 2024, 2 months ago

Problem/Motivation

The problem ocurred while implementing the Auth2.0 Server β†’ module to allow signing into Moodle through Drupal. When trying to redirect the user to the customized login, using the Anonymous Login β†’ module an error ocurred.

The error was that a missing parameter which was being lost through the redirects (sesskey). Through further investigation I realized that the parameters being passed as the redirected URL were not being encoded.

Proposed resolution

To use the php function urlencode() when creating the redirect URL.
- $request->getQueryString()
+ urlencode($request->getQueryString())

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil vgomesfalcao

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024