diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-18 07:51:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-18 07:51:57 +0000 |
commit | 002176a37597b51b4f5e482d9c5e6a8f6b39257f (patch) | |
tree | 214aa107de15f9fc3968abe4be13370ff026bcd3 /source3 | |
parent | 78dd0fe44826761f93785f73ab5b7fdc88e2c4ea (diff) | |
download | samba-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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/web/swat.c | 4 |
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()); |