mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +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;
|
$page['formcomment'] = $ban->comment;
|
||||||
} elseif ($request->query->has('thread')) {
|
} elseif ($request->query->has('thread')) {
|
||||||
// Prepopulate form using thread data
|
// 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)) {
|
if (!preg_match("/^\d{1,10}$/", $thread_id)) {
|
||||||
throw new BadRequestException('Wrong value of "thread" argument.');
|
throw new BadRequestException('Wrong value of "thread" argument.');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user