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:
j0rDy
2026-01-24 02:12:17 +01:00
committed by GitHub
parent 4de5e30ac6
commit f52e2866ac
2 changed files with 547 additions and 449 deletions

View File

@@ -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