mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-04 10:25:58 -05:00
Added missing workaround for reserved characters in uri
This commit is contained in:
parent
453657fee7
commit
bf1e30237c
@ -858,7 +858,9 @@ require('MeshAgent').AddCommandHandler(function (data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var xurl = getServerTargetUrlEx(data.value);
|
var xurl = getServerTargetUrlEx(data.value);
|
||||||
if (xurl != null) {
|
if (xurl != null)
|
||||||
|
{
|
||||||
|
xurl = xurl.split('$').join('%24').split('@').join('%40'); // Escape the $ and @ characters
|
||||||
var woptions = http.parseUri(xurl);
|
var woptions = http.parseUri(xurl);
|
||||||
woptions.rejectUnauthorized = 0;
|
woptions.rejectUnauthorized = 0;
|
||||||
woptions.perMessageDeflate = false;
|
woptions.perMessageDeflate = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user