Files
ops-Gazelle/sections/forums/get_post.php
T
2020-09-22 16:13:46 +00:00

14 lines
248 B
PHP

<?php
// Quick SQL injection check
$postId = (int)$_GET['post'];
if (!$postId) {
error(0);
}
[$body, $forumId] = (new Gazelle\Forum)->postBody($postId);
if (!Forums::check_forumperm($forumId)) {
error(0);
}
echo trim(display_str($body));