This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit d26c080999383be096e70bc1d071aac3bb2988e6
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Sep 19 20:59:22 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Sep 23 00:47:59 2026 +0000

    avformat/http: do not send Secure cookies over plain http
---
 libavformat/http.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index dac46d2991..7f44450ca0 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1481,6 +1481,10 @@ static int get_cookies(HTTPContext *s, char **cookies, 
const char *path)
             memchr(cookie, ';', eql - cookie))
             goto skip_cookie;
 
+        for (e = cookie_entry; (e = av_dict_iterate(cookie_params, e)); )
+            if (!av_strcasecmp(e->key, "secure") && !av_stristart(s->location, 
"https:", NULL))
+                goto skip_cookie;
+
         // if the cookie has expired, don't add it
         if ((e = av_dict_get(cookie_params, "expires", NULL, 0)) && e->value) {
             struct tm tm_buf = {0};

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to