Skip to content

Commit 6eb1071

Browse files
committed
Do not log user input (security vulnerability)
1 parent 7823097 commit 6eb1071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Cms.Api.Management/Factories/DocumentUrlFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ public async Task<IEnumerable<DocumentUrlInfoResponseModel>> CreateUrlSetsAsync(
6161
IUrlProvider? provider = _urlProviders.FirstOrDefault(provider => provider.Alias.InvariantEquals(providerAlias));
6262
if (provider is null)
6363
{
64-
_logger.LogError("Could not resolve the URL provider requested for preview: {providerAlias}", providerAlias);
64+
_logger.LogError("Could not resolve a URL provider requested for preview - it was not registered in the URL providers collection.");
6565
return null;
6666
}
6767

6868
UrlInfo? previewUrlInfo = await provider.GetPreviewUrlAsync(content, culture, segment);
6969
if (previewUrlInfo is null)
7070
{
71-
_logger.LogError("The URL provider: {providerAlias} could not generate a preview URL for content with key: {contentKey}", providerAlias, content.Key);
71+
_logger.LogError("The URL provider could not generate a preview URL for content with key: {contentKey}", content.Key);
7272
return null;
7373
}
7474

0 commit comments

Comments
 (0)