diff --git a/main.py b/main.py
index d4830f3..0761e5d 100644
--- a/main.py
+++ b/main.py
@@ -51,7 +51,7 @@ def list():
users = c.fetchall()
text = ""
for i in users:
- username = urllib.parse.quote_plus(i[1])
+ username = urllib.parse.quote_plus(i[1], safe='_.-~')
text = text + f'
{escape(i[1])}: {i[2]}
'
return '''
@@ -70,7 +70,7 @@ def list():
@app.route("/list/user", methods=['GET'])
def user_info():
username = urllib.parse.unquote_plus(request.args.get("user"))
- db_log.info(username)
+ db_log.info(str(username))
c.execute("SELECT * FROM users WHERE username = ?", [username])
user_list = c.fetchall()
if user_list != []: