diff options
-rw-r--r-- | mediagoblin/oauth/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mediagoblin/oauth/views.py b/mediagoblin/oauth/views.py index 1b7c789a..1b4787d6 100644 --- a/mediagoblin/oauth/views.py +++ b/mediagoblin/oauth/views.py @@ -15,6 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import datetime +import urllib import six @@ -313,10 +314,13 @@ def authorize_finish(request): oauth_request.verifier ) + # It's come from the OAuth headers so it'll be encoded. + redirect_url = urllib.unquote(oauth_request.callback) + return redirect( request, querystring=querystring, - location=oauth_request.callback + location=redirect_url ) @csrf_exempt |