Skip to content

Commit

Permalink
Fix backend requests
Browse files Browse the repository at this point in the history
  • Loading branch information
johannessteu committed May 10, 2019
1 parent eb66331 commit 4e59a8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/Aspect/CollectDebugInformationAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public function addDebugValues(JoinPointInterface $joinPoint): string

$debugOutput = '<!--__T3N_NEOS_DEBUG__ ' . json_encode($data) . '-->';
$htmlEndPosition = strpos($output, '</html>');

if ($htmlEndPosition === false ) {
return $output . $debugOutput;
}

return substr($output, 0, $htmlEndPosition) . $debugOutput . substr($output, $htmlEndPosition);
}

Expand Down

0 comments on commit 4e59a8a

Please sign in to comment.