mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
Update common.js (#4894)
* Update common.js Added missing translations in Dutch. * linting --------- Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
@@ -314,9 +314,15 @@ class DrupalWiki {
|
||||
}
|
||||
|
||||
const buffer = await attachmentResponse.arrayBuffer();
|
||||
const localFilePath = normalizePath(sanitizeFileName(path.resolve(WATCH_DIRECTORY, fileName)));
|
||||
const localFilePath = normalizePath(
|
||||
sanitizeFileName(path.resolve(WATCH_DIRECTORY, fileName))
|
||||
);
|
||||
if (!isWithin(path.resolve(WATCH_DIRECTORY), localFilePath)) {
|
||||
console.error(`[DrupalWiki Loader]: File name ${localFilePath} is not within the storage path ${path.resolve(WATCH_DIRECTORY)}`);
|
||||
console.error(
|
||||
`[DrupalWiki Loader]: File name ${localFilePath} is not within the storage path ${path.resolve(
|
||||
WATCH_DIRECTORY
|
||||
)}`
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user