Skip to content

Commit

Permalink
fix: topsheets can reference parent folders in /file/../paths
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Feb 1, 2022
1 parent 6d34252 commit d1bb736
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/HTTPFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class SVNFileSystem {
path = path.replace('https:/', 'https://')
path = path.replace('http:/', 'http://')
// console.log('CLEAN2: ', path)

// sanity: /parent/my/../etc => /parent/etc
path = new URL(path).href

return path
}

Expand Down

0 comments on commit d1bb736

Please sign in to comment.