Skip to content

Commit

Permalink
fix: sanitize file-system path
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Apr 29, 2024
1 parent e2a0f29 commit 390c685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Service/Indexer/IndexerStatusStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ private function createBaseDirectory(): void

private function getStatusFile(string $key): string
{
$sanitizedKey = str_replace('\\', '', $key);
$sanitizedKey = basename($sanitizedKey);
return $this->basedir .
'/atoolo.search.index.' . $key . ".status.json";
'/atoolo.search.index.' . $sanitizedKey . ".status.json";
}
}

0 comments on commit 390c685

Please sign in to comment.