Fixes issue 44, caused by --- in PTRs.
This commit is contained in:
parent
24445308dc
commit
761c00740f
@ -348,7 +348,7 @@ class LookingGlass
|
|||||||
if ($type === 'mtr') {
|
if ($type === 'mtr') {
|
||||||
// correct output for mtr
|
// correct output for mtr
|
||||||
$parser->update($str);
|
$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
|
// flush output buffering
|
||||||
@ob_flush();
|
@ob_flush();
|
||||||
|
@ -348,7 +348,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran
|
|||||||
for await (const chunk of readChunks(reader)) {
|
for await (const chunk of readChunks(reader)) {
|
||||||
const text = decoder.decode(chunk)
|
const text = decoder.decode(chunk)
|
||||||
<?php if(in_array($_SESSION[LookingGlass::SESSION_TARGET_METHOD], [LookingGlass::METHOD_MTR, LookingGlass::METHOD_MTR6])): ?>
|
<?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]) {
|
if (!splittedText[1]) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user