From 4e4f9bc069f7b3b4370da58b443d9744b6b4355f Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 6 Dec 2012 19:14:38 +0100 Subject: [PATCH] Support UTF8 encoded URLs in community authentication Commit 8b3726b7d866d614c842ca90593187e726a6cf3e fixed this for all login fields except the URL redirect field (such as the users name). But the wiki in particular uses UTF8 in the URLs, so we need to deal with them in the URL as well. --- pgweb/account/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgweb/account/views.py b/pgweb/account/views.py index 468c558f..cb3fc061 100644 --- a/pgweb/account/views.py +++ b/pgweb/account/views.py @@ -257,7 +257,7 @@ def communityauth(request, siteid): 'e': request.user.email.encode('utf-8'), } if su: - info['su'] = request.GET['su'] + info['su'] = request.GET['su'].encode('utf-8') # Turn this into an URL. Make sure the timestamp is always first, that makes # the first block more random.. -- 2.39.5