Skip to content

Commit

Permalink
Update RunCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Sep 12, 2023
1 parent 3d182ba commit 75e0ee7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Dashboards/Memcached/Compatibility/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ public function runCommand(string $command): string {
}

$command = strtr($command, ['\r\n' => "\r\n"])."\r\n";
$data = $this->streamConnection($command, $command_name);

return $this->streamConnection($command, $command_name);
return rtrim($data, "\r\n");
}

/**
Expand Down Expand Up @@ -117,7 +118,7 @@ private function streamConnection(string $command, string $command_name): string

fclose($stream);

return rtrim($buffer, "\r\n");
return $buffer;
}

private function commandName(string $command): string {
Expand Down

0 comments on commit 75e0ee7

Please sign in to comment.