mirror of
https://github.com/bitwarden/jslib
synced 2025-12-06 00:03:29 +00:00
Revert "clean api url paths from directory traversal (#539)"
This reverts commit ea29f580a5.
This commit is contained in:
@@ -1616,9 +1616,6 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
headers.set('User-Agent', this.customUserAgent);
|
||||
}
|
||||
|
||||
// Clean path from directory traversal
|
||||
path = path.split('../').join('');
|
||||
|
||||
const requestInit: RequestInit = {
|
||||
cache: 'no-store',
|
||||
credentials: this.getCredentials(),
|
||||
|
||||
Reference in New Issue
Block a user