Commit afcdaef3 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4938 (Bots may make topic titles that are too long)

parent 90fbbcf1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2325,6 +2325,7 @@ class Module_topics
        if (is_null($title)) {
            $title = '';
        }
        $title = substr($title, 0, 255); // Spambots may bypass normal UI restriction, and we don't want a crash

        $check_permissions = true;
        $add_poll = post_param_integer('add_poll', 0);