diff options
author | bugreport%peshkin.net <> | 2002-08-17 06:28:55 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2002-08-17 06:28:55 +0000 |
commit | e9d56927daa4929f7f406c114730bb0730016602 (patch) | |
tree | 301244b270cf5289bd020cf435c7d54ca332c95b /quips.cgi | |
parent | e8584108d410cc2cf63124d88d640aff6821b975 (diff) | |
download | bugs-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-x | quips.cgi | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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."); |