From 33102f762b5f8ebed179889d6b9d27a495cbfbba Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Mon, 12 Sep 2022 10:48:50 +0200 Subject: [PATCH] Fix path duplication in renderCleanPathAndFilename() Fixes #18 --- Classes/SentryClient.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Classes/SentryClient.php b/Classes/SentryClient.php index 0affc09..8ccdb37 100644 --- a/Classes/SentryClient.php +++ b/Classes/SentryClient.php @@ -281,11 +281,10 @@ private function renderCleanPathAndFilename(string $rawPathAndFilename): string if (preg_match('#Flow_Object_Classes/\w+.php$#', $rawPathAndFilename) !== 1) { return $rawPathAndFilename; } - $absolutePathAndFilename = FLOW_PATH_ROOT . trim($rawPathAndFilename, '/'); - if (!file_exists($absolutePathAndFilename)) { + if (!file_exists($rawPathAndFilename)) { return $rawPathAndFilename; } - $classProxyFile = file_get_contents($absolutePathAndFilename); + $classProxyFile = file_get_contents($rawPathAndFilename); if ($classProxyFile === false) { return $rawPathAndFilename; }