* Bugfixes: - autotools: fix `--with-ca-embed` build rule - cmake: ensure `CURL_USE_OPENSSL`/`USE_OPENSSL_QUIC` are set in sync - cmake: fix MSH3 to appear on the feature list - connect: store connection info when really done - FTP: partly revert eeb7c1280742f5c8fa48a4340fc1e1a1a2c7075a - http2: when uploading data from stdin, fix eos forwarding - http: make max-filesize check not count ignored bodies - lib: fix AF_INET6 use outside of USE_IPV6 - multi: check that the multi handle is valid in curl_multi_assign - QUIC: on connect, keep on trying on draining server - request: correctly reset the eos_sent flag - setopt: remove superfluous use of ternary expressions - singleuse: drop `Curl_memrchr()` for no-HTTP builds - tool_cb_wrt: use "curl_response" if no file name in URL - transfer: fix sendrecv() without interim poll - vtls: fix `Curl_ssl_conn_config_match` doc param OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=378
21 lines
783 B
Diff
21 lines
783 B
Diff
Index: curl-7.82.0/lib/url.c
|
|
===================================================================
|
|
--- curl-7.82.0.orig/lib/url.c
|
|
+++ curl-7.82.0/lib/url.c
|
|
@@ -1832,9 +1832,13 @@ static CURLcode findprotocol(struct Curl
|
|
/* it is allowed for "normal" request, now do an extra check if this is
|
|
the result of a redirect */
|
|
if(data->state.this_is_a_follow &&
|
|
- !(data->set.redir_protocols & p->protocol))
|
|
+ !(data->set.redir_protocols & p->protocol)) {
|
|
/* nope, get out */
|
|
- ;
|
|
+ failf(data, "Redirect to protocol \"%s\" not supported or disabled in "
|
|
+ LIBCURL_NAME, protostr);
|
|
+
|
|
+ return CURLE_UNSUPPORTED_PROTOCOL;
|
|
+ }
|
|
else {
|
|
/* Perform setup complement if some. */
|
|
conn->handler = conn->given = p;
|