Git development
 help / color / mirror / Atom feed
* [PATCH 0/1] http: reject unsupported proxy URL schemes
@ 2026-05-01 19:04 aminnimaj
  2026-05-01 19:04 ` [PATCH 1/1] " aminnimaj
  2026-05-05  9:19 ` [PATCH v2 0/1] " aminnimaj
  0 siblings, 2 replies; 5+ messages in thread
From: aminnimaj @ 2026-05-01 19:04 UTC (permalink / raw)
  To: git; +Cc: peff, ryan.hendrickson, Aliwoto

From: Aliwoto <aminnimaj@gmail.com>

An explicit proxy URL with an unsupported scheme such as
htpp://127.0.0.1 is currently accepted and treated as an HTTP proxy.

This happens because Git parses the URL, extracts the host part, and
passes only that host to libcurl without rejecting the unsupported
scheme. As a result, the typo is silently accepted.

This patch rejects explicit unsupported proxy schemes while keeping the
existing host:port-without-scheme behavior unchanged, and adds a
regression test for the unsupported-scheme case.

Aliwoto (1):
  http: reject unsupported proxy URL schemes

 http.c                | 79 +++++++++++++++++++++++++++++--------------
 t/t5564-http-proxy.sh |  5 +++
 2 files changed, 59 insertions(+), 25 deletions(-)


base-commit: 67ad42147a7acc2af6074753ebd03d904476118f
-- 
2.49.0.windows.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-05  9:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-01 19:04 [PATCH 0/1] http: reject unsupported proxy URL schemes aminnimaj
2026-05-01 19:04 ` [PATCH 1/1] " aminnimaj
2026-05-03 22:19   ` Junio C Hamano
2026-05-05  9:19 ` [PATCH v2 0/1] " aminnimaj
2026-05-05  9:19   ` [PATCH v2 1/1] " aminnimaj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox