summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-05-10 11:53:21 +0200
committerjustdave%syndicomm.com <>2001-05-10 11:53:21 +0200
commit12ec69f9666726f8751901cac9470ec8bb85eb9b (patch)
treeb06188d2c765205d0c3d69593a52710565d0548a /CGI.pl
parent47bffcac295be86c9614f08239444b69fd739861 (diff)
downloadbugzilla-12ec69f9666726f8751901cac9470ec8bb85eb9b.tar.gz
bugzilla-12ec69f9666726f8751901cac9470ec8bb85eb9b.tar.xz
Fix for bug 38855: showvotes.cgi needs to escape (untrusted) url params
Patch by Myke Melez <myk@mozilla.org> r= jake@acutex.net
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/CGI.pl b/CGI.pl
index 29d8f68ea..587ecc074 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -963,6 +963,20 @@ sub PutFooter {
}
+sub DisplayError {
+ my ($message, $title) = (@_);
+ $title ||= "Error";
+
+ print "Content-type: text/html\n\n";
+ PutHeader($title);
+
+ print PerformSubsts( Param("errorhtml") , {errormsg => $message} );
+
+ PutFooter();
+
+ return 1;
+}
+
sub PuntTryAgain ($) {
my ($str) = (@_);
print PerformSubsts(Param("errorhtml"),