openedx-unsupported / edx-app-android

The Open edX mobile app for Android!
https://docs.google.com/document/d/15MYZ2LAmahB82P5wkPkQOqjszfou0Qkeae3qz7STxUQ/edit
Apache License 2.0
299 stars 333 forks source link

fix: Handle Hierarchical Uris only for external links #1761

Closed HamzaIsrar12 closed 1 year ago

HamzaIsrar12 commented 1 year ago

Description

LEARNER-9272

Before fetching query parameters, it is advisable to check whether the URI is hierarchical. If the URI is not hierarchical, further processing should be avoided as it will lead to unexpected results.

A URI is hierarchical if it has a scheme, authority, and path.