diff options
author | Julien Cristau <jcristau@debian.org> | 2009-08-26 18:47:09 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-08-26 18:47:09 +0200 |
commit | 1f858adff1ce2687cf542dd9b69b81137412f8a4 (patch) | |
tree | 4aa1cf4c8eea12f62b17d75818c97e07583479ff | |
parent | 0dd71e12416aa7dc60ed68af8127e04609b125f4 (diff) |
xsfbs.sh: remove unused reject_whitespace function
-rw-r--r-- | debian/xsfbs/xsfbs.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/debian/xsfbs/xsfbs.sh b/debian/xsfbs/xsfbs.sh index b3f4bbe26..45acd592c 100644 --- a/debian/xsfbs/xsfbs.sh +++ b/debian/xsfbs/xsfbs.sh @@ -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 ... ] # |