diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-16 08:37:20 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-17 14:33:31 +0000 |
commit | 5cba52312bcf5b07489950633f5854f01010bdb3 (patch) | |
tree | c11c680929b08d2a7a8acce7ab15873ffc6428e3 /interface-definitions/service_webproxy.xml.in | |
parent | a3559f7e429c86ccdfeeac0aaddfc054be403368 (diff) | |
download | vyos-1x-5cba52312bcf5b07489950633f5854f01010bdb3.tar.gz vyos-1x-5cba52312bcf5b07489950633f5854f01010bdb3.zip |
webproxy: T4468: Fix regex for squidguard source-group
(cherry picked from commit fbd3bef2248de5785f96d2e7803a6811eee78710)
Diffstat (limited to 'interface-definitions/service_webproxy.xml.in')
-rw-r--r-- | interface-definitions/service_webproxy.xml.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/service_webproxy.xml.in b/interface-definitions/service_webproxy.xml.in index 3acac7f9d..bd5396291 100644 --- a/interface-definitions/service_webproxy.xml.in +++ b/interface-definitions/service_webproxy.xml.in @@ -488,9 +488,9 @@ <description>Name of source group</description> </valueHelp> <constraint> - <regex>^[^0-9]</regex> + <regex>^(?!-|_|\d)[a-zA-Z_][a-zA-Z0-9][\w\-\.]*</regex> </constraint> - <constraintErrorMessage>URL-filter source-group cannot start with a number!</constraintErrorMessage> + <constraintErrorMessage>URL-filter source-group must start with a letter and can contain dashes or underscores!</constraintErrorMessage> </properties> <children> <leafNode name="address"> |