From c863a37094ba57b50bcb682cd972e0b0a4db44a3 Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Wed, 1 Jul 2020 03:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E5=BC=BA=E5=88=B6=E4=BF=AE=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BC=9A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA500=E5=86=85=E9=83=A8=E9=94=99=EF=BC=88=E4=BD=BF?= =?UTF-8?q?=E7=94=A8urllib=E7=9A=84unquote=E5=87=BD=E6=95=B0=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=BA=94=E8=AF=A5=E6=98=AFurllib.parse.unquote?= =?UTF-8?q?=E8=80=8C=E4=B8=8D=E6=98=AFurllib.unquote=EF=BC=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/www/teleport/webroot/app/controller/user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/www/teleport/webroot/app/controller/user.py b/server/www/teleport/webroot/app/controller/user.py index 8f22c34..18a63de 100755 --- a/server/www/teleport/webroot/app/controller/user.py +++ b/server/www/teleport/webroot/app/controller/user.py @@ -5,6 +5,7 @@ import json import os import time import urllib +import urllib.parse import tornado.gen from app.base import mail @@ -117,7 +118,7 @@ class ResetPasswordHandler(TPBaseHandler): class ChangeExpiredPasswordHandler(TPBaseHandler): def get(self): - _username = urllib.unquote(self.get_argument('username', None)) + _username = urllib.parse.unquote(self.get_argument('username', None)) if _username is None: return self.redirect('/')