From 85d0ae7b434a3ae9f3bd50ad7fee1fcd23b26a26 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 20 Apr 2021 21:01:59 +0200 Subject: xml: T3488: when using regex one must use ^ and $ when checking string literals --- interface-definitions/vpn_l2tp.xml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface-definitions/vpn_l2tp.xml.in') diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in index 2d8a8503d..5bdebcb05 100644 --- a/interface-definitions/vpn_l2tp.xml.in +++ b/interface-definitions/vpn_l2tp.xml.in @@ -63,7 +63,7 @@ Use X.509 certificate for IPsec authentication - (pre-shared-secret|x509) + ^(pre-shared-secret|x509)$ pre-shared-secret x509 @@ -201,7 +201,7 @@ Require the peer to authenticate itself using MS-CHAPv2 [Microsoft Challenge Handshake Authentication Protocol, Version 2]. - (pap|chap|mschap|mschap-v2) + ^(pap|chap|mschap|mschap-v2)$ pap chap mschap mschap-v2 -- cgit v1.2.3