Skip to content
Snippets Groups Projects
Commit 88843c7d authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

use ob_get_clean() instead of ob_get_contents() to avoid double rendering of...

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
parent 3f28e8ed
No related branches found
No related tags found
No related merge requests found
...@@ -225,7 +225,7 @@ abstract class StudIPPlugin ...@@ -225,7 +225,7 @@ abstract class StudIPPlugin
return function ($request, $response, array $otherargs) use ($action, $args, $that) { return function ($request, $response, array $otherargs) use ($action, $args, $that) {
ob_start(); ob_start();
call_user_func_array([$that, $action], $args); call_user_func_array([$that, $action], $args);
$content = ob_get_contents(); $content = ob_get_clean();
$response->getBody()->write($content); $response->getBody()->write($content);
return $response; return $response;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment