From 611f4f64a73f400f3942330fa10045fcd2ee5a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Mon, 30 Dec 2024 11:16:13 +0000 Subject: [PATCH] Update regex for server name validation in settings.json --- src/common/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/settings.json b/src/common/settings.json index 5702450f7..5214f08b4 100644 --- a/src/common/settings.json +++ b/src/common/settings.json @@ -50,7 +50,7 @@ "help": "List of the virtual hosts served by bunkerweb.", "id": "server-name", "label": "Server name", - "regex": "^(((?!.*\\.\\.)(?![^\\s]{256,})([A-Za-z0-9]([A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,63})(?!.*\\s\\2(\\s|$)))?(\\s(((?!.*\\.\\.)(?![^\\s]{256,})([A-Za-z0-9]([A-Za-z0-9\\-]*[A-Za-z0-9])?\\.)+[A-Za-z]{2,63}))(?!.*\\s\\5(\\s|$)))*$", + "regex": "^((?!.*\\.\\.)([^\\s]{1,256})(?!.*\\s\\2(\\s|$)))?(\\s(((?!.*\\.\\.))([^\\s]{1,256})(?!.*\\s\\7(\\s|$))))*$", "type": "text" }, "WORKER_PROCESSES": {