`werkzeug.urls.url_decode` is deprecated and cannot be used in werkzeug 3
Closed this issue · 1 comments
liwii commented
Describe the bug
In this line, from werkzeug.urls import url_decode
fails with latest werkzeug==3.0.0
.
flask-login/src/flask_login/utils.py
Line 14 in 31e20a3
This is because werkzeug.urls.url_decode
is already deprecated and removed from werkzeug==3.0
.
(Ref: https://github.com/pallets/werkzeug/pull/2768/files#diff-342c3ac7878fc8165fb66b641c3a05ae0b4e5da5c9273fd00db272d61422bb89L3)
Their suggestion is to use urllib.parse.parse_qs
instead.
To Reproduce
Import flask_login
with werkzeug==3.0.0