From 761c00740f2dca42743eeb7f1acb0cfe312b12f6 Mon Sep 17 00:00:00 2001 From: dqos <8611981+dqos@users.noreply.github.com> Date: Sat, 24 Aug 2024 20:26:09 +0200 Subject: [PATCH] Fixes issue 44, caused by --- in PTRs. --- LookingGlass.php | 2 +- index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LookingGlass.php b/LookingGlass.php index d0c1bba..6503a82 100644 --- a/LookingGlass.php +++ b/LookingGlass.php @@ -348,7 +348,7 @@ class LookingGlass 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(); diff --git a/index.php b/index.php index 340fd68..eba67f4 100644 --- a/index.php +++ b/index.php @@ -348,7 +348,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran for await (const chunk of readChunks(reader)) { const text = decoder.decode(chunk) - let splittedText = text.split('---') + let splittedText = text.split('@@@') if (!splittedText[1]) { continue }