From d870f3f05ada59e90b74b7a313c2d2d94fc0812a Mon Sep 17 00:00:00 2001 From: Swann Croiset Date: Tue, 28 Jul 2015 10:11:22 +0200 Subject: [PATCH] Fix URL regexp validation Change-Id: Id9c0cc0f47102fb9cd3365679f3aaf06afbf75b9 --- environment_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment_config.yaml b/environment_config.yaml index 3c9e7fbf8..eafeb4fc5 100644 --- a/environment_config.yaml +++ b/environment_config.yaml @@ -127,7 +127,7 @@ attributes: weight: 100 type: "text" regex: &node_url_regex - source: '^(http(s?):\/\/)?(((www\.)?+[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,6}){0,})|(\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b))(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$' + source: '^(http(s?):\/\/)?([a-zA-Z\d]+[a-zA-Z\d_\-.]*)(:[0-9]+)?(\/[a-zA-Z0-9_\-\s.\/\?%#&=]*)?$' error: "Invalid URL" restrictions: ¬_remote - condition: "settings:lma_collector.nagios_mode.value != 'remote'"