mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
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)
This commit is contained in:
parent
78dd0fe448
commit
002176a375
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user