aboutsummaryrefslogtreecommitdiffstats
path: root/quips.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-08-17 06:28:55 +0000
committerbugreport%peshkin.net <>2002-08-17 06:28:55 +0000
commite9d56927daa4929f7f406c114730bb0730016602 (patch)
tree301244b270cf5289bd020cf435c7d54ca332c95b /quips.cgi
parente8584108d410cc2cf63124d88d640aff6821b975 (diff)
downloadbugs-e9d56927daa4929f7f406c114730bb0730016602.tar
bugs-e9d56927daa4929f7f406c114730bb0730016602.tar.gz
bugs-e9d56927daa4929f7f406c114730bb0730016602.tar.bz2
bugs-e9d56927daa4929f7f406c114730bb0730016602.tar.xz
bugs-e9d56927daa4929f7f406c114730bb0730016602.zip
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.");