From a083de5947d9d8e1f6ff8276a3610fd4bb7934e5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 2 Apr 2020 18:33:28 +0200 Subject: [PATCH] Hard code maximum size for virtual directory --- src/utils/VirtualDirsUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/VirtualDirsUtils.ts b/src/utils/VirtualDirsUtils.ts index 441c290..f26048b 100644 --- a/src/utils/VirtualDirsUtils.ts +++ b/src/utils/VirtualDirsUtils.ts @@ -18,7 +18,7 @@ export enum VirtualDirType { * @param dir The virtual directory to check */ export function checkVirtualDirectory(dir: string) : boolean { - if(dir.length < 4) return false; + if(dir.length < 4 || dir.length > 30) return false; for(let el of [".html", ".txt", ".php", "à", "â", "é", "ê", "@", "/", "\"", "'", '"', "<", ">", "?", "&", "#"]) if(dir.includes(el))