summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-09 12:13:21 +0200
committerGitHub <noreply@github.com>2022-07-09 12:13:21 +0200
commit464af891335e14de3a9a76597da99d7e3543e7f2 (patch)
treef255a06e73e2b5ee41ce0f422d5c2750c2f098a0
parentddfb571f83ce54dbb137959b9e635651cb7f1679 (diff)
parent5cba52312bcf5b07489950633f5854f01010bdb3 (diff)
downloadvyos-1x-464af891335e14de3a9a76597da99d7e3543e7f2.tar.gz
vyos-1x-464af891335e14de3a9a76597da99d7e3543e7f2.zip
Merge pull request #1364 from sever-sever/T4468-eq
webproxy: T4468: Fix regex for squidguard source-group 1.3
-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">