summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-06-16 08:37:20 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-06-17 14:33:31 +0000
commit5cba52312bcf5b07489950633f5854f01010bdb3 (patch)
treec11c680929b08d2a7a8acce7ab15873ffc6428e3 /interface-definitions
parenta3559f7e429c86ccdfeeac0aaddfc054be403368 (diff)
downloadvyos-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')
-rw-r--r--interface-definitions/service_webproxy.xml.in4
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">