mirror of
https://github.com/bryangerlach/rdgen.git
synced 2025-11-29 00:23:27 +00:00
only allow ascii characters on appname
This commit is contained in:
@@ -80,6 +80,8 @@ def generator_view(request):
|
|||||||
filename = filename.replace(" ","_")
|
filename = filename.replace(" ","_")
|
||||||
else:
|
else:
|
||||||
filename = "rustdesk"
|
filename = "rustdesk"
|
||||||
|
if not all(char.isascii() for char in appname):
|
||||||
|
appname = "rustdesk"
|
||||||
myuuid = str(uuid.uuid4())
|
myuuid = str(uuid.uuid4())
|
||||||
protocol = _settings.PROTOCOL
|
protocol = _settings.PROTOCOL
|
||||||
host = request.get_host()
|
host = request.get_host()
|
||||||
|
|||||||
Reference in New Issue
Block a user