From bcf7a2e8ff95b6eda3d3dc0a7eb914caaea77de7 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 26 Jul 2022 16:14:52 +0530 Subject: [PATCH] Common: Change CustomPBAConfigriguration's filename validation to allow empty strings --- .../agent_configuration/agent_sub_configuration_schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/agent_configuration/agent_sub_configuration_schemas.py b/monkey/common/agent_configuration/agent_sub_configuration_schemas.py index 7593b69e9..b1ae1c458 100644 --- a/monkey/common/agent_configuration/agent_sub_configuration_schemas.py +++ b/monkey/common/agent_configuration/agent_sub_configuration_schemas.py @@ -15,7 +15,7 @@ from .agent_sub_configurations import ( ) from .utils import freeze_lists -valid_custom_pba_filename_regex = re.compile(r"^([a-zA-Z0-9\ \._-]+)$") +valid_custom_pba_filename_regex = re.compile(r"^([a-zA-Z0-9\ \._-]*)$") class CustomPBAConfigurationSchema(Schema):