From 99e6b9e6b1e7101fdb164c5b1cd6660a9cf5aaa0 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 10 Mar 2011 17:19:25 +0100 Subject: [PATCH] update regexp for sane characters Signed-off-by: Nico Schottelius --- bin/cdist-config | 4 ++-- doc/changelog | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/cdist-config b/bin/cdist-config index bebf449c..850f2a2b 100755 --- a/bin/cdist-config +++ b/bin/cdist-config @@ -63,8 +63,8 @@ __cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname" : ${__cdist_name_type_bin:=type_bin} : ${__cdist_name_type_explorer:=type_explorer} -# Used for IDs -: ${__cdist_sane_regexp:=[A-Za-z0-9/]*[-A-Za-z0-9_/]*} +# Used for IDs: Allow everything not starting with - and . +: ${__cdist_sane_regexp:=^[^-\.]} # Default remote user : ${__cdist_remote_user:=root} diff --git a/doc/changelog b/doc/changelog index 4ec2c47f..41073e2c 100644 --- a/doc/changelog +++ b/doc/changelog @@ -1,3 +1,6 @@ +1.0.3: upcoming + * Update regexp used for sane characters + 1.0.2: 2011-03-09 * Add manpages: cdist-type, cdist-type__file, cdist-reference, cdist-explorer * Make doc/man/ usable as MANPATH entry