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() {
|
sanitize_arg() {
|
||||||
declare input="$1"
|
declare input="$1"
|
||||||
# Define allowed characters:
|
# Define allowed characters:
|
||||||
# letters, digits, dot, underscore, slash, equals, [, ], colon, double-quote, hyphen, plus, space.
|
# letters, digits, dot, underscore, slash, equals, [, ], colon, double-quote, hyphen, space.
|
||||||
declare allowed
|
declare allowed='a-zA-Z0-9._/=\[\]:"\-+ '
|
||||||
declare disallowed
|
declare disallowed
|
||||||
allowed='a-zA-Z0-9._/=[]:"-+ '
|
disallowed=$(printf '%s' "${input}" | tr -d "${allowed}")
|
||||||
disallowed=$(printf '%s' "$input" | sed "s/[$allowed]//g")
|
|
||||||
|
|
||||||
if [[ -n ${disallowed} ]]; then
|
if [[ -n ${disallowed} ]]; then
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user