Skip to content

Commit

Permalink
Sanitize user input before logging it.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo committed Oct 23, 2023
1 parent da36e02 commit 6c7cb75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void Run(string myQueueItem, FunctionContext context)
string functionName = context.FunctionDefinition.Name;

QueueMessage queueMessage = SetupMessage(context, myQueueItem);
log.LogInformation($"GeneXus Queue trigger handler. Function processed: {functionName} Invocation Id: {context.InvocationId}. Queue item : {queueMessage.Id}");
log.LogInformation($"GeneXus Queue trigger handler. Function processed: {functionName} Invocation Id: {context.InvocationId}. Queue item : {StringUtil.Sanitize(queueMessage.Id, StringUtil.LogUserEntryWhiteList)}");

try
{
Expand Down

0 comments on commit 6c7cb75

Please sign in to comment.