only allow ascii characters on appname

This commit is contained in:
Bryan Gerlach
2025-02-17 09:10:00 -06:00
parent fe505ed35c
commit 47cf713307

View File

@@ -80,6 +80,8 @@ def generator_view(request):
filename = filename.replace(" ","_")
else:
filename = "rustdesk"
if not all(char.isascii() for char in appname):
appname = "rustdesk"
myuuid = str(uuid.uuid4())
protocol = _settings.PROTOCOL
host = request.get_host()