From 1b40bf27c45ccc4ae8c2e8608662230ef6c01375 Mon Sep 17 00:00:00 2001 From: SandPoot Date: Mon, 15 Apr 2024 20:17:21 -0300 Subject: [PATCH] fix NOW!!! --- tgui/packages/tgui-dev-server/util.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui-dev-server/util.js b/tgui/packages/tgui-dev-server/util.js index 0fc255ed67..13fbef3b21 100644 --- a/tgui/packages/tgui-dev-server/util.js +++ b/tgui/packages/tgui-dev-server/util.js @@ -6,6 +6,7 @@ import fs from 'fs'; import path from 'path'; + import { require } from './require.js'; const globPkg = require('glob'); @@ -19,14 +20,14 @@ export const resolveGlob = (...sections) => { const unsafePaths = globPkg.sync(path.resolve(...sections), { strict: false, silent: true, + windowsPathsNoEscape: true, }); const safePaths = []; for (let path of unsafePaths) { try { fs.statSync(path); safePaths.push(path); - } - catch {} + } catch {} } return safePaths; };