Strip special chars from friendly server name

This commit is contained in:
Charles Ewert 2019-10-05 22:41:44 -04:00
parent b514445c48
commit b7abd5d6f2

View File

@ -156,6 +156,9 @@ function authorize_request(request)
device = devinfo.getModelDisplayName()
friendly = devinfo.getFriendlyName()
' remove special characters
regex = CreateObject("roRegex", "[^a-zA-Z0-9\ \-\_]", "")
friendly = regex.ReplaceAll(friendly, "")
auth = auth + ", Device=" + Chr(34) + device + " (" + friendly + ")" + Chr(34)
device_id = devinfo.getChannelClientID()