From e13720997e0f96b3d303cbbfd7038e444ccd3c63 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 13 Aug 2012 13:23:36 +0200 Subject: Fix authenticating with passwords containing # (Closes issue #68) --- src/de/blinkt/openvpn/VpnProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/de/blinkt') 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 + '"'; -- cgit v1.2.3