Skip to content

Commit

Permalink
Fixes issue 44, caused by --- in PTRs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dqos committed Aug 24, 2024
1 parent 2444530 commit 761c007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LookingGlass.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ private static function procExecute(string $cmd, string $host, int $failCount =
if ($type === 'mtr') {
// correct output for mtr
$parser->update($str);
echo '---'.PHP_EOL.$parser->__toString().PHP_EOL.str_pad('', 4096).PHP_EOL;
echo '@@@'.PHP_EOL.$parser->__toString().PHP_EOL.str_pad('', 4096).PHP_EOL;

// flush output buffering
@ob_flush();
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ function updateThemeHelper() {
for await (const chunk of readChunks(reader)) {
const text = decoder.decode(chunk)
<?php if(in_array($_SESSION[LookingGlass::SESSION_TARGET_METHOD], [LookingGlass::METHOD_MTR, LookingGlass::METHOD_MTR6])): ?>
let splittedText = text.split('---')
let splittedText = text.split('@@@')
if (!splittedText[1]) {
continue
}
Expand Down

0 comments on commit 761c007

Please sign in to comment.