aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-10-14 00:36:05 -0700
committerPinapelz <yukais@pinapelz.com>2024-10-14 00:39:00 -0700
commit47ccc5788a059ad750dbf5b5bb688ad68e68b0a9 (patch)
treeecfe8b61f9c3115ac8c654d1556b38cd5283184c /api
parent88afabfd74b3b6e5ab0c34bf66bcfd0609aa8066 (diff)
unquote organization text when receiving via url
Diffstat (limited to 'api')
-rw-r--r--api/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/app.py b/api/app.py
index 0aa0e32..e01d7e9 100644
--- a/api/app.py
+++ b/api/app.py
@@ -5,6 +5,7 @@ from psycopg2 import Error
import os
import secrets
from dotenv import load_dotenv
+import urllib.parse
load_dotenv()
app = Flask(__name__)
@@ -148,6 +149,7 @@ def server_side_auth_demo():
def generate_organization_captcha(org):
server = create_database_connection()
create_session = False
+ org = urllib.parse.unquote(org)
if(request.args.get('auth') == "server"):
create_session = True
if server.check_health() is False:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage