V8.02.644.2025.05.31
All checks were successful
Retrieve the DNSSEC status at the time of updating the repository. / build-dnssec-diagram (push) Successful in 31s
All checks were successful
Retrieve the DNSSEC status at the time of updating the repository. / build-dnssec-diagram (push) Successful in 31s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -35,11 +35,10 @@ arg_check() {
|
||||
sanitize_arg() {
|
||||
declare input="$1"
|
||||
# Define allowed characters:
|
||||
# letters, digits, dot, underscore, slash, equals, [, ], colon, double-quote, hyphen, plus, space.
|
||||
declare allowed
|
||||
# letters, digits, dot, underscore, slash, equals, [, ], colon, double-quote, hyphen, space.
|
||||
declare allowed='a-zA-Z0-9._/=\[\]:"\-+ '
|
||||
declare disallowed
|
||||
allowed='a-zA-Z0-9._/=[]:"-+ '
|
||||
disallowed=$(printf '%s' "$input" | sed "s/[$allowed]//g")
|
||||
disallowed=$(printf '%s' "${input}" | tr -d "${allowed}")
|
||||
|
||||
if [[ -n ${disallowed} ]]; then
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user