summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-08-13 13:23:36 +0200
committerArne Schwabe <arne@rfc2549.org>2012-08-13 13:23:36 +0200
commite13720997e0f96b3d303cbbfd7038e444ccd3c63 (patch)
treeccbaf081cbe56632d642b980139c553fef312e33 /src/de
parentb2b8e478f9e4cae623f1efa9037491ade415c6c7 (diff)
Fix authenticating with passwords containing # (Closes issue #68)
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index 024874a..27ad783 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 + '"';