mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 18:08:15 +03:00
add warning to CDNRoot
This commit is contained in:
@@ -13,6 +13,9 @@ const logger = CreateLogCtx(__filename);
|
||||
|
||||
/**
|
||||
* Joins a file location against the location of the CDN static store.
|
||||
*
|
||||
* @danger - This function should **NEVER** be called with unsanitised user input!
|
||||
* Path directory traversal *is* possible, and *will* ruin your day.
|
||||
*/
|
||||
function CDNRoot(fileLoc: string) {
|
||||
return path.join(KTCDN_ROOT, fileLoc);
|
||||
|
||||
Reference in New Issue
Block a user