ソースを参照

Fix file owner and account name check ignore case.

A117870935 2 年 前
コミット
0c9ddf02f2

+ 1 - 1
app/src/main/java/com/nextcloud/client/account/UserAccountManagerImpl.java

@@ -340,7 +340,7 @@ public class UserAccountManagerImpl implements UserAccountManager {
     @Override
     public  boolean accountOwnsFile(OCFile file, Account account) {
         final String ownerId = file.getOwnerId();
-        return TextUtils.isEmpty(ownerId) || account.name.split("@")[0].equals(ownerId);
+        return TextUtils.isEmpty(ownerId) || account.name.split("@")[0].equalsIgnoreCase(ownerId);
     }
 
     @Override