From 7afabd97eccdb4ca8d9101b04b2263957baef1e8 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 15 Mar 2014 12:11:01 +0100 Subject: fix guessing profile names --- main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('/')); -- cgit v1.2.3