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