]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 65164 - Bugzilla wasn't sending </html> at the end of its pages.
authorjake%acutex.net <>
Wed, 10 Oct 2001 20:26:28 +0000 (20:26 +0000)
committerjake%acutex.net <>
Wed, 10 Oct 2001 20:26:28 +0000 (20:26 +0000)
Patch by Christian Reis <kiko@async.com.br>
r= gerv@mozilla.org, jake@acutex.net

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 2cfe767ebe3b7a64d85ef5215dc2235633264ca6..41f875892655638427a0a5d59d7f9922e2eb9074 100644 (file)
--- 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();
 }