[FFmpeg-devel] [PATCH 0/2 v2] Parse cookies more correctly

Scott Moak scott.moak at mybrainoncode.com
Wed Feb 12 07:57:04 CET 2014

Parse cookies more correctly in libavformat/http.c

A cookie with the "Expires" directive doesn't get parsed correctly. For example, a cookie like this:

lu=Rg3vHJZnehYLjVg7qi3bZjzg; Expires=Tue, 15-Jan-2013 21:47:38 GMT; Path=/; Domain=.example.com; 

will get tokened:

* lu=Rg3vHJZnehYLjVg7qi3bZjzg
* Expires=Tue,
* 15-Jan-2013
* 21:47:38

such that each of those is considered its own param in the while loop. This patch fixes this
and ignores the Expires directive.

Scott Moak (2):
  Parse cookies more correctly
  Strip trailing spaces from cookies

 libavformat/http.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)


More information about the ffmpeg-devel mailing list