Skip to content

Commit

Permalink
Sanitize parition key search (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMacocian authored Nov 27, 2023
1 parent 7cf7373 commit 19dcad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public TableStorageDatabase(
var scopedLogger = this.logger.CreateScopedLogger(nameof(this.GetPartySearches), partitionKey);
try
{
var response = await this.QuerySearches($"PartitionKey eq '{partitionKey}'", cancellationToken);
var response = await this.QuerySearches($"PartitionKey eq '{partitionKey.Replace("'", "''")}'", cancellationToken);
var partition = response.FirstOrDefault();
if (partition is null)
{
Expand Down

0 comments on commit 19dcad7

Please sign in to comment.