Skip to content

Commit

Permalink
Properly decode id from URI
Browse files Browse the repository at this point in the history
When parsing an href to get the id of a WebdavNode, make sure to also
decode it.
  • Loading branch information
Vincent Petry authored and nickvergessen committed Apr 26, 2017
1 parent 5b5c3a1 commit 4b084d2
Show file tree
Hide file tree
Showing 2 changed files with 398 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/js/oc-backbone-webdav.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
// so we take the part before that
} while (!result && parts.length > 0);

return result;
return decodeURIComponent(result);
}

function isSuccessStatus(status) {
Expand Down
Loading

0 comments on commit 4b084d2

Please sign in to comment.