summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-03-10 19:21:52 +0100
committerArne Schwabe <arne@rfc2549.org>2014-03-10 19:21:52 +0100
commit2ffe5b49fa7d7baf86d97c1f5ef29344bb546f82 (patch)
tree57147d17e651f3c10525737b3cd4898ae127f868 /main/src
parent718e01c219b030b90e0714c6af65c860719b9cfc (diff)
Fix passwords starting with ;
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java3
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 + '"';