[BRLTTY] Additional information

Sébastien Hinderer Sebastien.Hinderer at ens-lyon.org
Thu May 8 15:45:25 EDT 2008


Hi,

I'm Cc'ing the BRLTTY list because the discussion that gave rise to this
bug report started there.

Here is an example of a Set-Cookie line as sent by Amazon:
Set-Cookie: session-id-time=1210802400l; path=/; domain=.amazon.fr;
expires=Wed May 14 22:00:00 2008

The problem is that the LYmktime function defined in src/LYUtils.c can't
parse the expiration date. So, instead of returning a valid time it
returns 0. As a consequence lynx considers the cookie as having expired
and does not even keep track of it.

As a tempory fix, one may add two lines like these at the beginning of
the abovementionned function:

now = time(NULL);
if (s!="") {
  return now + 3600;
}
Obviously this is a poor fix. Hopefully upstream can come up with a more
robust version of LYmktime.



More information about the BRLTTY mailing list