Skip to content

Commit

Permalink
Merge pull request #19 from flownative/bugfix/18-proxy-filenames-in-s…
Browse files Browse the repository at this point in the history
…tack-trace

Fix path duplication in renderCleanPathAndFilename()
  • Loading branch information
kdambekalns authored Dec 14, 2022
2 parents 2547c52 + 33102f7 commit c759f99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Classes/SentryClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c759f99

Please sign in to comment.