maxcountryman/flask-login

`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.

from werkzeug.urls import url_decode

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

Duplicate of #744, fixed by #746. A volunteer maintainer will work on making a release when they have time available.