aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-19 11:34:56 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-12-19 11:34:56 +0000
commit88843c7d726c4100c74e9ee227b7319f2d0f4e40 (patch)
treeb37aab46afb37418fad55e7e61d940e8110bbd81
parent3f28e8ed509af09e4ca5a03434ffdb29f5391848 (diff)
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
-rw-r--r--lib/plugins/core/StudIPPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/core/StudIPPlugin.php b/lib/plugins/core/StudIPPlugin.php
index a747119..8389859 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;
};