From 002176a37597b51b4f5e482d9c5e6a8f6b39257f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 18 Mar 1998 07:51:57 +0000 Subject: don't set the Expires header on any page generated from a POST. This stops the "POST data has expired" problem when using the back button in netscape. (This used to be commit 112cf61cb6c24b7ea6d2d9a3cf96f68bf1c44560) --- source3/web/swat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/web/swat.c') diff --git a/source3/web/swat.c b/source3/web/swat.c index ae5a8006ce..6d155d8804 100644 --- a/source3/web/swat.c +++ b/source3/web/swat.c @@ -42,7 +42,9 @@ struct current_user current_user; /* start the page with standard stuff */ static void print_header(void) { - printf("Expires: 0\r\n"); + if (!cgi_waspost()) { + printf("Expires: 0\r\n"); + } printf("Content-type: text/html\r\n\r\n"); printf("\n"); printf("\n\nSamba Web Administration Tool\n\n\n\n", cgi_rooturl()); -- cgit