diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-03-10 19:21:52 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-03-10 19:21:52 +0100 |
commit | 2ffe5b49fa7d7baf86d97c1f5ef29344bb546f82 (patch) | |
tree | 57147d17e651f3c10525737b3cd4898ae127f868 /main/src | |
parent | 718e01c219b030b90e0714c6af65c860719b9cfc (diff) |
Fix passwords starting with ;
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/VpnProfile.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java index 920bad8b..d816d97e 100644 --- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java +++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java @@ -145,7 +145,8 @@ public class VpnProfile implements Serializable { escapedString = escapedString.replace("\"", "\\\""); escapedString = escapedString.replace("\n", "\\n"); - if (escapedString.equals(unescaped) && !escapedString.contains(" ") && !escapedString.contains("#")) + if (escapedString.equals(unescaped) && !escapedString.contains(" ") && + !escapedString.contains("#") && !escapedString.contains(";")) return unescaped; else return '"' + escapedString + '"'; |