From 807d74741bddbb3fdae16b2b08fd39da2876f2f8 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Fri, 7 Jul 2023 16:13:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Bug=20493=E3=80=82?= =?UTF-8?q?=E4=B8=8D=E8=A6=81=E8=BD=AC=E4=B9=89=EF=BC=88escape=EF=BC=89?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=8F=90=E4=BA=A4=E7=9A=84=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E3=80=82=E5=90=A6=E5=88=99=E7=B1=BB=20WordFreq=20=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=AD=A3=E7=A1=AE=E5=B7=A5=E4=BD=9C=EF=BC=8C=E6=AF=94?= =?UTF-8?q?=E5=A6=82=E8=BD=AC=E4=B9=89=E4=BC=9A=E6=8A=8A=E5=8D=95=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E5=8F=98=E6=88=90=20'=EF=BC=8C=E8=BF=99=E4=B8=8D?= =?UTF-8?q?=E5=88=A9=E4=BA=8E=20WordFreq=20=E7=B1=BB=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/user_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/user_service.py b/app/user_service.py index 2e5feed..5d601e0 100644 --- a/app/user_service.py +++ b/app/user_service.py @@ -129,7 +129,7 @@ def userpage(username): user_freq_record = path_prefix + 'static/frequency/' + 'frequency_%s.pickle' % (username) if request.method == 'POST': # when we submit a form - content = escape(request.form['content']) + content = request.form['content'] f = WordFreq(content) lst = f.get_freq() return render_template('userpage_post.html',username=username,lst = lst, yml=Yaml.yml)