From 85e64bab6aab02a6616a34d935c8931c662b1023 Mon Sep 17 00:00:00 2001 From: Jason Coward Date: Wed, 24 Apr 2024 09:46:55 -0600 Subject: [PATCH] Do not dynamically assign modProcessorResponse to modConnectorResponse Assign the processor result to a local variable rather than dynamically creating a "response" property on the modConnectorResponse class. --- core/src/Revolution/modConnectorResponse.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/Revolution/modConnectorResponse.php b/core/src/Revolution/modConnectorResponse.php index 9da9670624c..2663e40075d 100644 --- a/core/src/Revolution/modConnectorResponse.php +++ b/core/src/Revolution/modConnectorResponse.php @@ -148,14 +148,14 @@ public function outputContent(array $options = []) } /* run processor */ - $this->response = $this->modx->runProcessor($target, $scriptProperties, $options); - if (!$this->response) { + $response = $this->modx->runProcessor($target, $scriptProperties, $options); + if (!$response) { $this->responseCode = 404; $this->body = $this->modx->error->failure($this->modx->lexicon('processor_err_nf', [ 'target' => $target, ])); } else { - $this->body = $this->response->getResponse(); + $this->body = $response->getResponse(); } } }