summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-07-23 18:40:00 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-07-23 18:40:00 +0200
commit89e14eb40c7d8251f3aeff693c995def3cb8542c (patch)
treec4cc4103513434d3986509ff5eb21bd53ad85177 /etc
parent8fb5a4b65ad1a9712a2f5c37ef352a8f6b63dc6c (diff)
put: filter []
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/put2
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}