diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-23 18:40:00 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-23 18:40:00 +0200 |
commit | 89e14eb40c7d8251f3aeff693c995def3cb8542c (patch) | |
tree | c4cc4103513434d3986509ff5eb21bd53ad85177 /etc/functions/put | |
parent | 8fb5a4b65ad1a9712a2f5c37ef352a8f6b63dc6c (diff) |
put: filter []
Diffstat (limited to 'etc/functions/put')
-rw-r--r-- | etc/functions/put | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/functions/put b/etc/functions/put index 2e211bf..15d5341 100644 --- a/etc/functions/put +++ b/etc/functions/put @@ -87,6 +87,8 @@ while (( ${#hosts} )) { " -o '${remote_file}'; chmod 644 '${remote_file}'" remote_file=${remote_file// /%20} remote_file=${remote_file//\#/%23} + remote_file=${remote_file//\[/%5B} + remote_file=${remote_file//\]/%5D} url=${server_prefix}${remote_file} if $(curl -fI ${server_prefix}${remote_file} &> /dev/null); then echo ${server_prefix}${remote_file} |