Merge pull request #2833 from sbwalker/dev

add null check
This commit is contained in:
Shaun Walker
2023-05-23 11:16:21 -04:00
committed by GitHub

View File

@ -65,6 +65,8 @@
}
private string AddHeadContent(string headcontent, string content)
{
if (!string.IsNullOrEmpty(content))
{
// format head content, remove scripts, and filter duplicate elements
var elements = (">" + content.Replace("\n", "") + "<").Split("><");
@ -78,6 +80,7 @@
}
}
}
}
return headcontent;
}