From 88843c7d726c4100c74e9ee227b7319f2d0f4e40 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 19 Dec 2024 11:34:56 +0000 Subject: [PATCH] use ob_get_clean() instead of ob_get_contents() to avoid double rendering of plugin contents, fixes #5062 Closes #5062 Merge request studip/studip!3784 --- lib/plugins/core/StudIPPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/core/StudIPPlugin.php b/lib/plugins/core/StudIPPlugin.php index a747119c8a1..8389859b53b 100644 --- a/lib/plugins/core/StudIPPlugin.php +++ b/lib/plugins/core/StudIPPlugin.php @@ -225,7 +225,7 @@ abstract class StudIPPlugin return function ($request, $response, array $otherargs) use ($action, $args, $that) { ob_start(); call_user_func_array([$that, $action], $args); - $content = ob_get_contents(); + $content = ob_get_clean(); $response->getBody()->write($content); return $response; }; -- GitLab