diff --git a/include/functions b/include/functions index c0296dca..bc44aff1 100644 --- a/include/functions +++ b/include/functions @@ -3070,8 +3070,11 @@ # Test against the string with a generic test set if [ $# -eq 1 ]; then input="$1" - # Only allow common set of characters: a-z, A-Z, 0-9, /._-:= - cleaned=$(echo "$input" | sed 's/[^a-zA-Z0-9\/\._:=-]//g') + # Use sed to strip all characters -except- those that are allowed + # - Common set of characters: a-z, A-Z, 0-9 + # - Special characters: , /._-:= + # - Space for names (like auditor name) + cleaned=$(echo "$input" | sed 's/[^[:space:]a-zA-Z0-9\/\._:=-]//g') # If two parameters are specified, then test input against specified class elif [ $# -eq 2 ]; then input="$1"