summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAslan Hajiyev <126803786+aslanvyos@users.noreply.github.com>2024-10-24 10:50:53 +0400
committerGitHub <noreply@github.com>2024-10-24 10:50:53 +0400
commit64d291e78291123b0db7f72de0af0129c8e046ed (patch)
treea3cd5b2e975fad660a4bf59ca4f944f564d16ce4
parentceb64f3dca08a14ea4ea407844103e81f8e4648a (diff)
downloadvyos-1x-64d291e78291123b0db7f72de0af0129c8e046ed.tar.gz
vyos-1x-64d291e78291123b0db7f72de0af0129c8e046ed.zip
T6807: allow a trailing slash character in system login
Allow the use of a trailing slash `("/")` at the of the user's home directory path. For example `/home/test/`
-rw-r--r--interface-definitions/system_login.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/system_login.xml.in b/interface-definitions/system_login.xml.in
index f6c8021d3..9865e3d32 100644
--- a/interface-definitions/system_login.xml.in
+++ b/interface-definitions/system_login.xml.in
@@ -190,7 +190,7 @@
<description>Path to home directory</description>
</valueHelp>
<constraint>
- <regex>\/$|(\/[a-zA-Z_0-9-.]+)+</regex>
+ <regex>(\/[a-zA-Z_0-9-.]+)+\/?$</regex>
</constraint>
</properties>
</leafNode>