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:
parent
7f8aea603f
commit
35ca143690
@ -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, "&");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user