summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-06-03 13:19:15 +0200
committerArne Schwabe <arne@rfc2549.org>2014-06-03 13:19:15 +0200
commitfc4b150994a4b14ba745f259de870781918fe8b9 (patch)
treef506eb5ffb41b24e7b4696f1951f0c6a39d9d53d /main/src
parent094baad0ca58bf87b02f0988c6eef6d7666ee65d (diff)
Fix path check (closes issue #251)
Diffstat (limited to 'main/src')
-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('/'));