From 9d7c89c63b0fdef53aa308e9db3aa834eca85c93 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 11 Nov 2016 00:09:15 +0100 Subject: Fix WHITELIST in run-gomf.bash --- run-gomf.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run-gomf.bash b/run-gomf.bash index 494e259..05146cf 100755 --- a/run-gomf.bash +++ b/run-gomf.bash @@ -27,7 +27,7 @@ set -e # The hostname to serve uploaded files on # -# By default, any connection can serve files on path /u/$file, but, if enalbed, +# By default, any connection can serve files on path /u/$file, but, if enabled, # this host will serve them directly on /$file. #UPLOAD_HOST=u.example.com @@ -59,7 +59,7 @@ set -e # reverse-proxied. #HTTP_PORT=80 -# The port to listen on for HTTP +# The port to listen on for HTTPS # # 443 for a standard HTTPS server. Requires TLS_CERT and TLS_KEY #HTTPS_PORT=443 @@ -161,7 +161,7 @@ flags=() [ -n "${ID_CHARSET}" ] && flags+=(--id-charset "$ID_CHARSET") [ -n "${ID_LENGTH}" ] && flags+=(--id-length "$ID_LENGTH") [ -n "${MAX_SIZE_MIB}" ] && flags+=(--max-size "$((MAX_SIZE_MIB*1024*1024))") -[ -n "$WHITELIST" ] && flags+=(--whitelist) +[ "${WHITELIST:-0}" -ne 0 ] && flags+=(--whitelist) oldifs="$IFS" IFS=, [ -n "$FILTER_EXT" ] && flags+=(--filter-ext "${FILTER_EXT[*]}") [ -n "$FILTER_MIME" ] && flags+=(--filter-ext "${FILTER_MIME[*]}") -- cgit