1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Bugfix: Allow blank tag in fileboards, do not show empty tinyboard markups

This commit is contained in:
8chan 2015-05-05 22:44:12 -07:00
parent cbc49e2a16
commit a9d0ee1f42

View File

@ -664,7 +664,7 @@ elseif (isset($_POST['post'])) {
}
}
if ($config['allowed_tags'] && $post['op'] && isset($_POST['tag']) && isset($config['allowed_tags'][$_POST['tag']])) {
if ($config['allowed_tags'] && $post['op'] && isset($_POST['tag']) && $_POST['tag'] && isset($config['allowed_tags'][$_POST['tag']])) {
$post['body'] .= "\n<tinyboard tag>" . $_POST['tag'] . "</tinyboard>";
}