summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-18 01:27:20 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-18 01:27:20 +1100
commit9f7af7b42d91050ba9d6849c2a690c00ff3b9458 (patch)
tree87a8ef1ccd5c9828bd067560a99ba92d5b0c5a0f /post.php
parentcbdc3fd8e817dfa5429c8f8fdcb587f2c2b740b6 (diff)
escape html for capcodes
Diffstat (limited to 'post.php')
-rw-r--r--post.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/post.php b/post.php
index 5f343ff4..71a2faae 100644
--- a/post.php
+++ b/post.php
@@ -128,6 +128,9 @@
if(!openBoard($post['board']))
error($config['error']['noboard']);
+ if(checkSpam())
+ error($config['error']['spam']);
+
if($config['robot_enable'] && $config['robot_mute']) {
checkMute();
}
@@ -188,7 +191,7 @@
if($mod && $mod['type'] >= MOD && preg_match('/^((.+) )?## (.+)$/', $post['name'], $match)) {
if(($mod['type'] == MOD && $match[3] == 'Mod') || $mod['type'] >= ADMIN) {
- $post['mod_tag'] = $match[3];
+ $post['mod_tag'] = utf8tohtml($match[3]);
$post['name'] = !empty($match[2])?$match[2]:$config['anonymous'];
}
} else {