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

Unverified Commit 9f6a37e3 authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

fix double slash on search results with folder, e.g. "/test//folder//"

parent 060285bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ public class WebdavEntry {
        if (ms.getStatus().length != 0) {
            mUri = ms.getHref();

            mPath = mUri.split(splitElement, 2)[1];
            mPath = mUri.split(splitElement, 2)[1].replace("//", "/");

            int status = ms.getStatus()[0].getStatusCode();
            if ( status == CODE_PROP_NOT_FOUND ) {
+2 −2
Original line number Diff line number Diff line
/**
/*
 * Nextcloud Android client application
 *
 * @author Mario Danic
@@ -67,7 +67,7 @@ public class WebDavFileUtils {
        }

        // loop to update every child
        RemoteFile remoteFile = null;
        RemoteFile remoteFile;
        MultiStatusResponse[] responses = remoteData.getResponses();
        for (int i = start; i < responses.length; i++) {
            /// new OCFile instance with the data from the server