summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-03-15 12:11:01 +0100
committerArne Schwabe <arne@rfc2549.org>2014-03-15 12:11:01 +0100
commit7afabd97eccdb4ca8d9101b04b2263957baef1e8 (patch)
tree61efeaf795ef5663945f0d796995af3a0643ac70
parentd2692a74e86d44cc70e276184f1c67a84bfe17ae (diff)
fix guessing profile names
-rw-r--r--main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
index 92356a20..f870e8a9 100644
--- a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
+++ b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
@@ -376,7 +376,7 @@ public class ConfigConverter extends Activity implements FileSelectCallback {
// /document/primary:ovpn/openvpn-imt.conf
- if (path.indexOf(':') != -1 && path.indexOf('/') != -1) {
+ if (path.indexOf(':') != -1 && path.indexOf('/') > path.indexOf(':')) {
String possibleDir = path.substring(path.indexOf(':') + 1, path.length());
possibleDir = possibleDir.substring(0, possibleDir.lastIndexOf('/'));