| @@ 1745-1746 (lines=2) @@ | ||
| 1742 | preparsecode($_POST['message']); |
|
| 1743 | ||
| 1744 | // Let's see if there's still some content left without the tags. |
|
| 1745 | if ($smcFunc['htmltrim'](strip_tags(parse_bbc($_POST['message'], false), implode('', $context['allowed_html_tags']))) === '' && (!allowedTo('admin_forum') || strpos($_POST['message'], '[html]') === false)) |
|
| 1746 | $post_errors[] = 'no_message'; |
|
| 1747 | } |
|
| 1748 | if (isset($_POST['calendar']) && !isset($_REQUEST['deleteevent']) && $smcFunc['htmltrim']($_POST['evtitle']) === '') |
|
| 1749 | $post_errors[] = 'no_event'; |
|
| @@ 2377-2378 (lines=2) @@ | ||
| 2374 | preparsecode($message); |
|
| 2375 | ||
| 2376 | // Make sure there's still some content left without the tags. |
|
| 2377 | if ($smcFunc['htmltrim'](strip_tags(parse_bbc($smcFunc['htmlspecialchars']($message, ENT_QUOTES), false), '<img>')) === '' && (!allowedTo('admin_forum') || strpos($message, '[html]') === false)) |
|
| 2378 | $post_errors[] = 'no_message'; |
|
| 2379 | } |
|
| 2380 | ||
| 2381 | // Wrong verification code? |
|