xsfbs.sh: remove unused reject_whitespace function

This commit is contained in:
Julien Cristau 2009-08-26 18:47:09 +02:00
parent 0dd71e1241
commit 1f858adff1
1 changed files with 0 additions and 16 deletions

16
debian/xsfbs/xsfbs.sh vendored
View File

@ -93,22 +93,6 @@ reject_nondigits () {
done
}
reject_whitespace () {
# syntax: reject_whitespace [ operand ]
#
# scan operand (typically a shell variable whose value cannot be trusted) for
# whitespace characters and barf if any are found
if [ -n "$1" ]; then
# does the operand contain any whitespace?
if expr "$1" : "[[:space:]]" > /dev/null 2>&1; then
# can't use die(), because I want to avoid forward references
echo "$THIS_PACKAGE $THIS_SCRIPT error: reject_whitespace() encountered" \
"possibly malicious garbage \"$1\"" >&2
exit $SHELL_LIB_THROWN_ERROR
fi
fi
}
reject_unlikely_path_chars () {
# syntax: reject_unlikely_path_chars [ operand ... ]
#