Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Unquote username & password when parsing a DSN #919

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dufferzafar
Copy link

@dufferzafar dufferzafar commented Jul 13, 2022

A DSN like: influxdb://user:sec#ret@host:port should be written as influxdb://user:sec%23ret@host:port

RFC 3986 allows characters like # ? to appear %-quoted in username / password which should be properly unquoted before using them.

Please see relevant Python bug: https://bugs.python.org/issue18140#msg375109

A DSN like: `influxdb://user:sec#ret@host:port`
should be written as `influxdb://user:sec%23ret@host:port`

RFC 3986 allows characters like # ? to appear in
username / password which should be properly unquoted

Please see relevant Python bug:
https://bugs.python.org/issue18140#msg375109
@dufferzafar dufferzafar requested review from aviau and xginn8 as code owners July 13, 2022 08:41
@dufferzafar
Copy link
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant