V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -15,7 +15,7 @@ guard_sourcing
|
||||
#######################################
|
||||
# Remove any leading or trailing whitespace.
|
||||
# Arguments:
|
||||
# $1: String to clean.
|
||||
# 1: String to clean.
|
||||
#######################################
|
||||
remove_whitespace() {
|
||||
# shellcheck disable=SC2155
|
||||
@@ -26,7 +26,7 @@ remove_whitespace() {
|
||||
#######################################
|
||||
# Function to escape all shell metacharacters
|
||||
# Arguments:
|
||||
# $1: String to Sanitize
|
||||
# 1: String to Sanitize
|
||||
#######################################
|
||||
sanitize_input() {
|
||||
declare input="$1"
|
||||
@@ -37,7 +37,7 @@ sanitize_input() {
|
||||
#######################################
|
||||
# Function to remove any character not in the allowed set
|
||||
# Arguments:
|
||||
# $1: String to Sanitize
|
||||
# 1: String to Sanitize
|
||||
#######################################
|
||||
sanitize_string() {
|
||||
declare input="$1"
|
||||
|
||||
Reference in New Issue
Block a user