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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user