Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 4eea07e9 authored by Mario Danic's avatar Mario Danic Committed by AndyScherzinger
Browse files

Try to fix strange names

parent 7a4f872a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@
 */
package com.owncloud.android.lib.resources.files;

import android.net.Uri;

import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.network.WebdavEntry;
import com.owncloud.android.lib.common.operations.RemoteOperation;
@@ -64,6 +66,9 @@ public class ToggleFavoriteOperation extends RemoteOperation {
        }

        String webDavUrl = client.getNewWebdavUri(false).toString();
        int pos = filePath.lastIndexOf('/') + 1;
        filePath = filePath.substring(0, pos) + Uri.encode(filePath.substring(pos));

        String fullFilePath = webDavUrl + "/files/" + client.getCredentials().getUsername() + filePath;

        try {