Added missing workaround for reserved characters in uri

Bryan Roe committed Aug 15, 2021 at 11:12 UTC bf1e30237c7d37553c32c849f24b125b98a481d2
1 file changed +3 -1
agents/recoverycore.js
+3 -1
@@ -858,7 +858,9 @@ require('MeshAgent').AddCommandHandler(function (data) {
858 }
859
860 var xurl = getServerTargetUrlEx(data.value);
861 - if (xurl != null) {
861 + if (xurl != null)
862 + {
863 + xurl = xurl.split('$').join('%24').split('@').join('%40'); // Escape the $ and @ characters
864 var woptions = http.parseUri(xurl);
865 woptions.rejectUnauthorized = 0;
866 woptions.perMessageDeflate = false;