summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-10-10 22:26:28 +0200
committerjake%acutex.net <>2001-10-10 22:26:28 +0200
commitf2378ada13c4bf942cef4f751fbbd3e1e78c94d2 (patch)
tree5802ba5f8b7eed17679d8a184ffae770d8d1318c
parent0322bad0c6a29d82260f89427094f64cd99f1064 (diff)
downloadbugzilla-f2378ada13c4bf942cef4f751fbbd3e1e78c94d2.tar.gz
bugzilla-f2378ada13c4bf942cef4f751fbbd3e1e78c94d2.tar.xz
Fix for bug 65164 - Bugzilla wasn't sending </html> at the end of its pages.
Patch by Christian Reis <kiko@async.com.br> r= gerv@mozilla.org, jake@acutex.net
-rw-r--r--CGI.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/CGI.pl b/CGI.pl
index 2cfe767eb..41f875892 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -1166,8 +1166,19 @@ sub PutHeader {
}
+# Putfooter echoes footerhtml and by default prints closing tags
+#
+# param
+# dontclose (boolean): avoid sending </body></html>
+#
+# Example:
+# Putfooter(); # normal close
+# Putfooter(1); # don't send closing tags
+
sub PutFooter {
+ my ( $dontclose ) = @_;
print PerformSubsts(Param("footerhtml"));
+ print "\n</body></html>\n" if ( ! $dontclose );
SyncAnyPendingShadowChanges();
}