From a017a661370b07f83d4fa9f2ba0cebcbe8db0c2d Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 26 Jul 2022 19:01:07 +0530 Subject: [PATCH] Common: Fix CustomPBAConfigurationSchema's linux filename validation regex to check for forward slashes instead of back slashes --- .../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 d60e31b6e..3c46cd0fe 100644 --- a/monkey/common/agent_configuration/agent_sub_configuration_schemas.py +++ b/monkey/common/agent_configuration/agent_sub_configuration_schemas.py @@ -16,7 +16,7 @@ from .agent_sub_configurations import ( from .utils import freeze_lists valid_windows_custom_pba_filename_regex = re.compile(r"^[^<>:\"\\\/|?*]*[^<>:\"\\\/|?* \.]+$|^$") -valid_linux_custom_pba_filename_regex = re.compile(r"^[^\0\\]*$") +valid_linux_custom_pba_filename_regex = re.compile(r"^[^\0/]*$") class CustomPBAConfigurationSchema(Schema):