1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-03 01:17:56 +03:00

Fixed a bug when invoking CoRD with username that contains a domain

(user@domain) or a password with a :
This commit is contained in:
Adolfo Gómez García 2014-10-15 05:00:50 +02:00
parent 7f8aea603f
commit 35ca143690

View File

@ -23,6 +23,8 @@ public class MacApplet implements OsApplet {
if( value == null || value.isEmpty()) if( value == null || value.isEmpty())
return ""; return "";
String res = value.replaceAll(" ", "%20"); String res = value.replaceAll(" ", "%20");
res = res.replaceAll("@", "%40");
res = res.replaceAll(":", "%3A");
res = res.replaceAll("&", weird); res = res.replaceAll("&", weird);
return res.replaceAll(weird, "&"); return res.replaceAll(weird, "&");
} }