fix: security vulnerability that allows remote code execution (GHSA-p6h4-93qp-jhcm) (#7844)
This commit is contained in:
@@ -142,7 +142,7 @@ export function getLiveQueryController(options: ParseServerOptions): LiveQueryCo
|
||||
}
|
||||
|
||||
export function getDatabaseController(options: ParseServerOptions): DatabaseController {
|
||||
const { databaseURI, collectionPrefix, databaseOptions, idempotencyOptions } = options;
|
||||
const { databaseURI, collectionPrefix, databaseOptions } = options;
|
||||
let { databaseAdapter } = options;
|
||||
if (
|
||||
(databaseOptions ||
|
||||
@@ -156,7 +156,7 @@ export function getDatabaseController(options: ParseServerOptions): DatabaseCont
|
||||
} else {
|
||||
databaseAdapter = loadAdapter(databaseAdapter);
|
||||
}
|
||||
return new DatabaseController(databaseAdapter, idempotencyOptions);
|
||||
return new DatabaseController(databaseAdapter, options);
|
||||
}
|
||||
|
||||
export function getHooksController(
|
||||
|
||||
Reference in New Issue
Block a user