Skip to content

Commit

Permalink
Merge pull request #858 from nextcloud/artonge/fix/dav_scope
Browse files Browse the repository at this point in the history
fix: Reduce scope of intercepted requested
  • Loading branch information
artonge authored Jan 9, 2025
2 parents c11ecc3 + 9024afa commit af20670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/end_to_end_encryption-files.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/end_to_end_encryption-files.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/services/webDavProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function setupWebDavDecryptionProxy() {
window.fetch = async (input: RequestInfo | URL, config: RequestInit = {}): Promise<Response> => {
let request = new Request(input, config)

if (!(request.url.includes('/remote.php/') && (request.method === 'GET' || request.method === 'PROPFIND'))) {
if (!(request.url.includes('/remote.php/dav/files/') && (request.method === 'GET' || request.method === 'PROPFIND'))) {
return originalFetch(request)
}

Expand Down

0 comments on commit af20670

Please sign in to comment.