mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
escape html for capcodes
This commit is contained in:
parent
cbdc3fd8e8
commit
9f7af7b42d
2
mod.php
2
mod.php
@ -661,7 +661,7 @@
|
|||||||
} else {
|
} else {
|
||||||
$po = new Post($post['id'], $post['thread'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $mod ? '?/' : $config['root'], $mod);
|
$po = new Post($post['id'], $post['thread'], $post['subject'], $post['email'], $post['name'], $post['trip'], $post['body'], $post['time'], $post['thumb'], $post['thumbwidth'], $post['thumbheight'], $post['file'], $post['filewidth'], $post['fileheight'], $post['filesize'], $post['filename'], $post['ip'], $mod ? '?/' : $config['root'], $mod);
|
||||||
}
|
}
|
||||||
$temp .= $po->build();
|
$temp .= $po->build() . '<hr/>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($temp))
|
if(!empty($temp))
|
||||||
|
5
post.php
5
post.php
@ -128,6 +128,9 @@
|
|||||||
if(!openBoard($post['board']))
|
if(!openBoard($post['board']))
|
||||||
error($config['error']['noboard']);
|
error($config['error']['noboard']);
|
||||||
|
|
||||||
|
if(checkSpam())
|
||||||
|
error($config['error']['spam']);
|
||||||
|
|
||||||
if($config['robot_enable'] && $config['robot_mute']) {
|
if($config['robot_enable'] && $config['robot_mute']) {
|
||||||
checkMute();
|
checkMute();
|
||||||
}
|
}
|
||||||
@ -188,7 +191,7 @@
|
|||||||
|
|
||||||
if($mod && $mod['type'] >= MOD && preg_match('/^((.+) )?## (.+)$/', $post['name'], $match)) {
|
if($mod && $mod['type'] >= MOD && preg_match('/^((.+) )?## (.+)$/', $post['name'], $match)) {
|
||||||
if(($mod['type'] == MOD && $match[3] == 'Mod') || $mod['type'] >= ADMIN) {
|
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'];
|
$post['name'] = !empty($match[2])?$match[2]:$config['anonymous'];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user