summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-18 07:51:57 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-18 07:51:57 +0000
commit002176a37597b51b4f5e482d9c5e6a8f6b39257f (patch)
tree214aa107de15f9fc3968abe4be13370ff026bcd3
parent78dd0fe44826761f93785f73ab5b7fdc88e2c4ea (diff)
downloadsamba-002176a37597b51b4f5e482d9c5e6a8f6b39257f.tar.gz
samba-002176a37597b51b4f5e482d9c5e6a8f6b39257f.tar.bz2
samba-002176a37597b51b4f5e482d9c5e6a8f6b39257f.zip
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)
-rw-r--r--source3/web/swat.c4
1 files changed, 3 insertions, 1 deletions
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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n");
printf("<HTML>\n<HEAD>\n<TITLE>Samba Web Administration Tool</TITLE>\n</HEAD>\n<BODY background=\"%simages/background.jpg\">\n\n", cgi_rooturl());