public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.21.0-9: Resolves: #1308791 - do not refuse cookies for localhost
Date: Mon, 02 Nov 2026 14:29:04 GMT [thread overview]
Message-ID: <179362974422.1.10511036483452799424.rpms-curl-e2daf9825340@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : e2daf98253406ff14eb7841d84e3479abedfd042
Author : Kamil Dudka <kdudka@redhat.com>
Date : 2016-03-03T00:42:56+01:00
Stats : +55/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/e2daf98253406ff14eb7841d84e3479abedfd042?branch=curl-v8.21.0-9
Log:
Resolves: #1308791 - do not refuse cookies for localhost
---
diff --git a/0001-curl-7.47.1-psl-localhost.patch b/0001-curl-7.47.1-psl-localhost.patch
new file mode 100644
index 0000000..86f2c64
--- /dev/null
+++ b/0001-curl-7.47.1-psl-localhost.patch
@@ -0,0 +1,47 @@
+From 090ee789dda468fe0d9b715ec4e5dc47a948a239 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
+Date: Wed, 2 Mar 2016 11:07:16 +0100
+Subject: [PATCH] cookie: do not refuse cookies for localhost
+
+Closes #658
+---
+ lib/cookie.c | 10 ++++++----
+ tests/data/test1136 | 1 +
+ 2 files changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/lib/cookie.c b/lib/cookie.c
+index d62f446..e5c7b7e 100644
+--- a/lib/cookie.c
++++ b/lib/cookie.c
+@@ -788,10 +788,12 @@ Curl_cookie_add(struct SessionHandle *data,
+ #ifdef USE_LIBPSL
+ /* Check if the domain is a Public Suffix and if yes, ignore the cookie.
+ This needs a libpsl compiled with builtin data. */
+- if(co->domain && !isip(co->domain) && (psl = psl_builtin()) != NULL) {
+- if(psl_is_public_suffix(psl, co->domain)) {
+- infof(data, "cookie '%s' dropped, domain '%s' is a public suffix\n",
+- co->name, co->domain);
++ if(domain && co->domain && !isip(co->domain)) {
++ if (((psl = psl_builtin()) != NULL)
++ && !psl_is_cookie_domain_acceptable(psl, domain, co->domain)) {
++ infof(data,
++ "cookie '%s' dropped, domain '%s' must not set cookies for '%s'\n",
++ co->name, domain, co->domain);
+ freecookie(co);
+ return NULL;
+ }
+diff --git a/tests/data/test1136 b/tests/data/test1136
+index e42ca06..d3327e8 100644
+--- a/tests/data/test1136
++++ b/tests/data/test1136
+@@ -58,6 +58,7 @@ http://www.example.ck/1136 http://www.ck/1136 http://z-1.compute-1.amazonaws.com
+
+ .www.example.ck TRUE / FALSE 0 test2 allowed2
+ .www.ck TRUE / FALSE 0 test4 allowed4
++.z-1.compute-1.amazonaws.com TRUE / FALSE 0 test5 forbidden5
+ </file>
+ </verify>
+ </testcase>
+--
+2.5.0
+
diff --git a/curl.spec b/curl.spec
index 3a119eb..79586ed 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,12 +1,15 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 7.47.1
-Release: 3%{?dist}
+Release: 4%{?dist}
License: MIT
Group: Applications/Internet
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
Source2: curlbuild.h
+# do not refuse cookies for localhost (#1308791)
+Patch1: 0001-curl-7.47.1-psl-localhost.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -118,7 +121,7 @@ documentation of the library, too.
%setup -q
# upstream patches
-# (none)
+%patch1 -p1
# Fedora patches
%patch101 -p1
@@ -231,6 +234,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/aclocal/libcurl.m4
%changelog
+* Wed Mar 02 2016 Kamil Dudka <kdudka@redhat.com> 7.47.1-4
+- do not refuse cookies for localhost (#1308791)
+
* Wed Feb 17 2016 Kamil Dudka <kdudka@redhat.com> 7.47.1-3
- make SCP and SFTP test-cases work with up2date OpenSSH
reply other threads:[~2026-11-02 14:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179362974422.1.10511036483452799424.rpms-curl-e2daf9825340@fedoraproject.org \
--to=kdudka@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox