[haiku-bugs] [Haiku] #13543: Cookies with expiration date on Sunday are stored incorrectly

  • From: "markh" <trac@xxxxxxxxxxxx>
  • Date: Sat, 03 Jun 2017 16:48:04 -0000

#13543: Cookies with expiration date on Sunday are stored incorrectly
------------------------------+------------------------------
 Reporter:  markh             |        Owner:  nobody
     Type:  bug               |       Status:  new
 Priority:  normal            |    Milestone:  Unscheduled
Component:  Kits/Network Kit  |      Version:  R1/Development
 Keywords:                    |   Blocked By:
 Blocking:                    |  Has a Patch:  0
 Platform:  All               |
------------------------------+------------------------------
 When a cookie has an expiration date of Sunday, the cookie is stored to
 disk incorrectly. Instead of storing "Sun" as the day, it stores "?".
 I tracked this to commit hrev50924 which sets the day of the week when
 converting the BHttpTime as a string. The DayOfWeek function returns 7 for
 Sunday while the strftime expects 0 for Sunday.
 I have an example that shows the problem and a patch that fixes the
 problem in BHttpTime.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13543>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: