Merge pull request #19563 from kamil-tekiela/Fix-binlog-controller
Fix binlog controller Fixes #19562
This commit is contained in:
commit
0baaf10e28
@ -35,7 +35,7 @@ final class BinlogController implements InvocableController
|
||||
|
||||
public function __invoke(ServerRequest $request): Response
|
||||
{
|
||||
$log = $request->getParsedBodyParamAsString('log');
|
||||
$log = $request->getParsedBodyParamAsString('log', '');
|
||||
$position = (int) $request->getParsedBodyParamAsString('pos', '');
|
||||
|
||||
if ($this->dbi->isSuperUser()) {
|
||||
|
||||
@ -78,8 +78,8 @@ final class ReplicationController implements InvocableController
|
||||
|
||||
if ($primaryInfo['status']) {
|
||||
$primaryAddUser = $request->getParsedBodyParamAsStringOrNull('primary_add_user');
|
||||
$username = $request->getParsedBodyParamAsString('username');
|
||||
$hostname = $request->getParsedBodyParamAsString('hostname');
|
||||
$username = $request->getParsedBodyParamAsStringOrNull('username');
|
||||
$hostname = $request->getParsedBodyParamAsStringOrNull('hostname');
|
||||
|
||||
$primaryReplicationHtml = $this->replicationGui->getHtmlForPrimaryReplication(
|
||||
$primaryConnection,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user