diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-11-15 17:55:15 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-11-15 17:55:15 +0100 |
| commit | 2b1e3c8a69ae19961dff85bc192d1c1a1b700a67 (patch) | |
| tree | c4997197378865e6124f06de8d270171d9a87025 | |
| parent | f00a6728ef23061ab69fed90414ee9aa5b21f132 (diff) | |
| download | chawan-2b1e3c8a69ae19961dff85bc192d1c1a1b700a67.tar.gz | |
gopher: fix queries with spaces
| -rwxr-xr-x | adapter/protocol/gopher | 3 |
1 files changed, 2 insertions, 1 deletions
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}" <<EOF $path${query:+"$tab"}${query##*=}
|