Skip to content

EspoCRM – Open Source CRM Application

No input in log

Yurii42ba3a7c4197
diff --git a/application/Espo/Core/Api/ErrorOutput.php b/application/Espo/Core/Api/ErrorOutput.php
index a730586a2e..f881c141d4 100644
--- a/application/Espo/Core/Api/ErrorOutput.php
+++ b/application/Espo/Core/Api/ErrorOutput.php
@@ -169,11 +169,6 @@ class ErrorOutput
return null;
}
- private function clearPasswords(string $string): string
- {
- return preg_replace('/"(.*password.*)":".*"/i', '"$1":"*****"', $string) ?? $string;
- }
-
private static function generateErrorBody(string $header, string $text): string
{
$body = "<h1>" . $header . "</h1>";
@@ -192,8 +187,6 @@ class ErrorOutput
private function processRoute(string $route, Request $request, Throwable $exception): void
{
- $requestBodyString = $this->clearPasswords($request->getBodyContents() ?? '');
-
$message = $exception->getMessage();
if ($exception->getPrevious() && $exception->getPrevious()->getMessage()) {
@@ -214,10 +207,6 @@ class ErrorOutput
$logMessageItemList[] = $request->getMethod() . ' ' . $request->getResourcePath();
- if ($requestBodyString) {
- $logMessageItemList[] = "Input data: " . $requestBodyString;
- }
-
$logMessageItemList[] = "Route pattern: " . $route;
if (!empty($routeParams)) {