Strip special chars from friendly server name
This commit is contained in:
parent
b514445c48
commit
b7abd5d6f2
|
@ -156,6 +156,9 @@ function authorize_request(request)
|
||||||
|
|
||||||
device = devinfo.getModelDisplayName()
|
device = devinfo.getModelDisplayName()
|
||||||
friendly = devinfo.getFriendlyName()
|
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)
|
auth = auth + ", Device=" + Chr(34) + device + " (" + friendly + ")" + Chr(34)
|
||||||
|
|
||||||
device_id = devinfo.getChannelClientID()
|
device_id = devinfo.getChannelClientID()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user