]> granicus.if.org Git - php/commit
Fix #77794: Incorrect Date header format in built-in server
authorNiklas Keller <me@kelunik.com>
Sun, 24 Mar 2019 18:39:25 +0000 (19:39 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Mon, 25 Mar 2019 20:41:45 +0000 (21:41 +0100)
commit7f9872387e38a05b11ce233b4d142325d742c487
tree734d4bcbb9ebd0e180283282baac8e4d7a6067ae
parentec2ecb7e12b96f8f95af2885d173a0d46c88e190
Fix #77794: Incorrect Date header format in built-in server

- Fix the date format to be compliant with https://tools.ietf.org/html/rfc7231#section-7.1.1.2
- Fix date format length and use GMT time
- Previously, local time was used instead of GMT.
- Remove extra whitespace
- Simplify string appends in php_cli_server.c
sapi/cli/php_cli_server.c