[FFmpeg-devel] [PATCH v3] Parse cookies more correctly

Scott Moak scott.moak at mybrainoncode.com
Thu Feb 13 06:07:41 CET 2014


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
* GMT

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 (1):
  Parse cookies more correctly

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

-- 
1.8.5.4



More information about the ffmpeg-devel mailing list