| @@ 2380-2381 (lines=2) @@ | ||
| 2377 | preparsecode($message); |
|
| 2378 | ||
| 2379 | // Make sure there's still some content left without the tags. |
|
| 2380 | if ($smcFunc['htmltrim'](strip_tags(parse_bbc($smcFunc['htmlspecialchars']($message, ENT_QUOTES), false), '<img>')) === '' && (!allowedTo('admin_forum') || strpos($message, '[html]') === false)) |
|
| 2381 | $post_errors[] = 'no_message'; |
|
| 2382 | } |
|
| 2383 | ||
| 2384 | // Wrong verification code? |
|
| @@ 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'; |
|