MDL-73868 oauth2: Remove multiple slashes in image URL
commit3b32118506a2655520ccc051693346c46397c842
authorSara Arjona <sara@moodle.com>
Mon, 14 Feb 2022 10:30:13 +0000 (14 11:30 +0100)
committerSara Arjona <sara@moodle.com>
Mon, 14 Feb 2022 10:43:23 +0000 (14 11:43 +0100)
treefbb5d5651317a3546baeb39e546230b95f1452fb
parent6994e82281c4cbfbde52d573c91284bbffa79840
MDL-73868 oauth2: Remove multiple slashes in image URL

There is an issue with the current Badgr manifest because the image
URL contains double slash which is causing an error when storing it
in the database (https://api.test.badgr.com/static//images/logo.png).
This issue parses image URL and removes multiple slashes in URL.
lib/classes/oauth2/discovery/imsbadgeconnect.php