Skip to content

Commit

Permalink
Merge pull request #152 from nextcloud/fixDoubleSlash
Browse files Browse the repository at this point in the history
Fix double slash on search results with folder, e.g. "/test//folder//"
  • Loading branch information
AndyScherzinger authored Jun 18, 2018
2 parents 060285b + 9f6a37e commit 2c7ac04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public WebdavEntry(MultiStatusResponse ms, String splitElement) {
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 ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Nextcloud Android client application
*
* @author Mario Danic
Expand Down Expand Up @@ -67,7 +67,7 @@ public ArrayList<Object> readData(MultiStatus remoteData,
}

// 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
Expand Down

0 comments on commit 2c7ac04

Please sign in to comment.