Skip to content

Commit

Permalink
WIP Revert $subResponse->setContent('');
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Feb 3, 2024
1 parent 9e1ffd4 commit 55dcf60
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,13 @@ protected function initiateSubRequest()
return $content;
} catch (StopActionException $exception) {
$subResponse = $exception->response;
$subResponse->setContent('');
// we don't unset the contents of $subResponse as it might contain <meta http-equiv="refresh" for redirects
$subResponse->mergeIntoParentResponse($this->controllerContext->getResponse());
throw $exception;
} catch (ForwardException $exception) {
$subRequest = $exception->nextRequest;
continue;
}

} while ($dispatchLoopCount++ < 99);
throw new InfiniteLoopException('Could not ultimately dispatch the widget request after ' . $dispatchLoopCount . ' iterations.', 1380282310);
}
Expand Down

0 comments on commit 55dcf60

Please sign in to comment.