mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Fix thread ban
This commit is contained in:
parent
9fe423db62
commit
0edc9657b4
@ -133,7 +133,7 @@ class BanController extends AbstractController
|
||||
$page['formcomment'] = $ban->comment;
|
||||
} elseif ($request->query->has('thread')) {
|
||||
// Prepopulate form using thread data
|
||||
$thread_id = $request->query->has('thread');
|
||||
$thread_id = $request->query->get('thread');
|
||||
if (!preg_match("/^\d{1,10}$/", $thread_id)) {
|
||||
throw new BadRequestException('Wrong value of "thread" argument.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user