From 89e14eb40c7d8251f3aeff693c995def3cb8542c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 23 Jul 2023 18:40:00 +0200 Subject: put: filter [] --- etc/functions/put | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/functions') 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} -- cgit v1.2.3