summaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-08-17 08:28:55 +0200
committerbugreport%peshkin.net <>2002-08-17 08:28:55 +0200
commite9d56927daa4929f7f406c114730bb0730016602 (patch)
tree301244b270cf5289bd020cf435c7d54ca332c95b /quips.cgi
parente8584108d410cc2cf63124d88d640aff6821b975 (diff)
downloadbugzilla-e9d56927daa4929f7f406c114730bb0730016602.tar.gz
bugzilla-e9d56927daa4929f7f406c114730bb0730016602.tar.xz
Bug 10037 - param to disable adding new quips
r=imajes, preed
Diffstat (limited to 'quips.cgi')
-rwxr-xr-xquips.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/quips.cgi b/quips.cgi
index 234c2f463..a50bbc54a 100755
--- a/quips.cgi
+++ b/quips.cgi
@@ -62,7 +62,13 @@ if ($action eq "add") {
DisplayError("Please enter a quip in the text field.");
exit();
}
+
+ if (Param('enablequips') ne "on") {
+ ThrowUserError("This site does not permit the addition of new quips");
+ exit();
+ }
+
if ($comment =~ m/</) {
DisplayError("Sorry - for security reasons, support for HTML tags has
been turned off in quips.");