diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-08-13 13:23:36 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-08-13 13:23:36 +0200 |
commit | dbbbc9d008ee9cf51a0ce64c2c1c981ed94dbb15 (patch) | |
tree | e95e8a643b31cf452e28ee79b9bc07bfbf99d645 /src/de | |
parent | f70be66c97bd34e2e351eb9285faa50eec31341d (diff) |
Fix authenticating with passwords containing # (Closes issue #68)
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index 024874a4..27ad783f 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -121,7 +121,7 @@ public class VpnProfile implements Serializable{ escapedString = escapedString.replace("\"","\\\""); escapedString = escapedString.replace("\n","\\n"); - if (escapedString.equals(unescaped) && !escapedString.contains(" ")) + if (escapedString.equals(unescaped) && !escapedString.contains(" ") && !escapedString.contains("#")) return unescaped; else return '"' + escapedString + '"'; |