diff options
author | clsr <clsr@clsr.net> | 2016-11-11 00:09:15 +0100 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-11-11 00:09:15 +0100 |
commit | 9d7c89c63b0fdef53aa308e9db3aa834eca85c93 (patch) | |
tree | a82f12ee211c0f66db8651e9c22584b43ed28fac | |
parent | 06d44ff74601a3e546844faac2def1292636d3a5 (diff) | |
download | gomf-tools-9d7c89c63b0fdef53aa308e9db3aa834eca85c93.tar.gz gomf-tools-9d7c89c63b0fdef53aa308e9db3aa834eca85c93.zip |
Fix WHITELIST in run-gomf.bash
-rwxr-xr-x | run-gomf.bash | 6 |
1 files 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[*]}") |