From e4eccc7b7712c8e3c3e2f15ce582edad421e5312 Mon Sep 17 00:00:00 2001 From: fharzendorf <48434294+fharzendorf@users.noreply.github.com> Date: Mon, 11 Mar 2019 10:13:03 +0100 Subject: [PATCH] Fixed empty responseBody Fixed an issue where disabling sourceopt would return an empty responseBody. --- Classes/Service/CleanHtmlService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Service/CleanHtmlService.php b/Classes/Service/CleanHtmlService.php index 3e6aa02..8fe54b9 100644 --- a/Classes/Service/CleanHtmlService.php +++ b/Classes/Service/CleanHtmlService.php @@ -103,13 +103,13 @@ public function setVariables(array $config) * @param string $html * @param array $config * - * @return void + * @return string */ - public function clean(&$html, $config = []) + public function clean($html, $config = []) { if (!empty($config)) { if ((bool)$config['enabled'] === false) { - return; + return $html; } $this->setVariables($config);