From 2b1e3c8a69ae19961dff85bc192d1c1a1b700a67 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 15 Nov 2024 17:55:15 +0100 Subject: gopher: fix queries with spaces --- adapter/protocol/gopher | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'adapter/protocol/gopher') diff --git a/adapter/protocol/gopher b/adapter/protocol/gopher index 8ac78408..09eada16 100755 --- a/adapter/protocol/gopher +++ b/adapter/protocol/gopher @@ -33,7 +33,8 @@ EOF ;; esac path=$(printf '%s\n' "$path" | "$CHA_LIBEXEC_DIR"/urldec) - query=$(printf '%s\n' "${MAPPED_URI_QUERY##*=}" | "$CHA_LIBEXEC_DIR"/urldec) + query=$(printf '%s\n' "${MAPPED_URI_QUERY##*=}" | \ + sed 's/\+/ /g' | "$CHA_LIBEXEC_DIR"/urldec) tab=' ' "$CHA_LIBEXEC_DIR"/nc -m "$msg$LF" "$MAPPED_URI_HOST" "${MAPPED_URI_PORT:-70}" <