From 282d358d048cef0ef648e872bab5418b819e10fc Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 11 May 2026 13:34:13 -0600 Subject: [PATCH] fix(validation): update regex for directory validation in WebSocket utility - Modified the regex pattern in the `readValidDirectory` function to allow for a wider range of characters, including colons, improving the validation of directory names. - This change enhances input integrity by ensuring valid directory formats are accepted. --- apps/dokploy/package.json | 2 +- packages/server/src/wss/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/package.json b/apps/dokploy/package.json index 69975cbc6..cc9f79f9e 100644 --- a/apps/dokploy/package.json +++ b/apps/dokploy/package.json @@ -1,6 +1,6 @@ { "name": "dokploy", - "version": "v0.29.3", + "version": "v0.29.4", "private": true, "license": "Apache-2.0", "type": "module", diff --git a/packages/server/src/wss/utils.ts b/packages/server/src/wss/utils.ts index 0ea7485f9..bce5aa245 100644 --- a/packages/server/src/wss/utils.ts +++ b/packages/server/src/wss/utils.ts @@ -40,7 +40,7 @@ export const readValidDirectory = ( directory: string, serverId?: string | null, ) => { - if (!/^[\w/. -]{1,500}$/.test(directory)) { + if (!/^[\w/. :-]{1,500}$/.test(directory)) { return false; }