diff --git a/Udap.Common/Metadata/UdapMetaDataBuilder.cs b/Udap.Common/Metadata/UdapMetaDataBuilder.cs index b2ed943b..5537c996 100644 --- a/Udap.Common/Metadata/UdapMetaDataBuilder.cs +++ b/Udap.Common/Metadata/UdapMetaDataBuilder.cs @@ -79,7 +79,8 @@ public string GetCommunitiesAsHtml(string path) if (udapMetadataConfig == null) { - _logger.LogWarning("Missing metadata for community: {Community}", System.Net.WebUtility.UrlEncode(community)); + var sanitizedCommunity = community?.Replace("\r", "").Replace("\n", ""); + _logger.LogWarning("Missing metadata for community: {Community}", System.Net.WebUtility.UrlEncode(sanitizedCommunity)); return null; }