Decode request.query_string before use.
authorBen Sturmfels <ben@sturm.com.au>
Thu, 9 Apr 2020 05:53:49 +0000 (15:53 +1000)
committerBen Sturmfels <ben@sturm.com.au>
Thu, 9 Apr 2020 05:53:49 +0000 (15:53 +1000)
commit15c45a820f915455c8a1a55d971031aa122d1674
tree309e4ead7b4988444f29b888c82be546b6040ec4
parentf9112bd8833d08fc0b7a120c330d213e6e656a33
Decode request.query_string before use.

Prior to this change, when pagination kicks in on the user management or report
management panel, the following exception is raised:

  TypeError: a bytes-like object is required, not 'str'

The cause is that `request.query_string` in the URL parameters in raw bytestring
form as per Werkzeug documentation.
mediagoblin/plugins/openid/templates/mediagoblin/plugins/openid/login.html
mediagoblin/plugins/openid/templates/mediagoblin/plugins/openid/login_link.html
mediagoblin/templates/mediagoblin/moderation/report_panel.html
mediagoblin/templates/mediagoblin/moderation/user_panel.html