summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d4884ce8..d35eb4fb 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('/') > path.indexOf(':')) {
+ if (path.indexOf(':') != -1 && path.lastIndexOf('/') > path.indexOf(':')) {
String possibleDir = path.substring(path.indexOf(':') + 1, path.length());
possibleDir = possibleDir.substring(0, possibleDir.lastIndexOf('/'));