mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-24 22:39:21 +00:00
Hard code maximum size for virtual directory
This commit is contained in:
parent
618e2c143f
commit
a083de5947
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user