mirror of
https://github.com/apache/httpd.git
synced 2025-08-13 14:40:20 +00:00
This evil little change modifies the interface to ap_parseHTTPdate()
for no good reason. It'll be backed out real soon. Submitted by: pthreads leftovers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83772 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -588,10 +588,11 @@ API_EXPORT(int) ap_scan_script_header_err_core(request_rec *r, char *buffer,
|
||||
* pass it on blindly because of restrictions on future values.
|
||||
*/
|
||||
else if (!strcasecmp(w, "Last-Modified")) {
|
||||
time_t mtime = ap_parseHTTPdate(l);
|
||||
|
||||
ap_update_mtime(r, mtime);
|
||||
ap_set_last_modified(r);
|
||||
time_t mtime;
|
||||
if (ap_parseHTTPdate(l, &mtime) == 1) {
|
||||
ap_update_mtime(r, mtime);
|
||||
ap_set_last_modified(r);
|
||||
}
|
||||
}
|
||||
else if (!strcasecmp(w, "Set-Cookie")) {
|
||||
ap_table_add(cookie_table, w, l);
|
||||
|
Reference in New Issue
Block a user