Merge pull request #19563 from kamil-tekiela/Fix-binlog-controller

Fix binlog controller

Fixes #19562
This commit is contained in:
Maurício Meneghini Fauth 2025-02-17 18:46:33 -03:00 committed by GitHub
commit 0baaf10e28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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()) {

View File

@ -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,