1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-19 20:32:57 +00:00

Filter only '/' character in user input when version of server is 8.1 or later

This commit is contained in:
masensio
2015-06-02 09:37:46 +02:00
parent e48aa9c304
commit 9fc332eef9
6 changed files with 43 additions and 16 deletions
@@ -38,6 +38,8 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
0x04050000);
public static final int MINIMUM_VERSION_FOR_SHARING_API = 0x05001B00; // 5.0.27
public static final int MINIMUM_VERSION_WITH_FORBIDDEN_CHARS = 0x08010000; // 8.1
private static final int MAX_DOTS = 3;
@@ -120,6 +122,10 @@ public class OwnCloudVersion implements Comparable<OwnCloudVersion> {
public boolean isSharedSupported() {
return (mVersion >= MINIMUM_VERSION_FOR_SHARING_API);
}
public boolean isVersionWithForbiddenCharacters() {
return (mVersion >= MINIMUM_VERSION_WITH_FORBIDDEN_CHARS);
}
}