diff options
| author | Michael <[email protected]> | 2017-04-22 21:37:23 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-22 21:37:23 -0400 |
| commit | 3e98bc2e5259ca6a81094d473a16b6d4899a7235 (patch) | |
| tree | 2706ea6ca541a53b636365f1646668b3177a25e2 /Project-Unite | |
| parent | bc5623743500eb9a37bdcad7a324c6ad8f517685 (diff) | |
| download | project-unite-3e98bc2e5259ca6a81094d473a16b6d4899a7235.tar.gz project-unite-3e98bc2e5259ca6a81094d473a16b6d4899a7235.tar.bz2 project-unite-3e98bc2e5259ca6a81094d473a16b6d4899a7235.zip | |
don't parse null strings as md
Diffstat (limited to 'Project-Unite')
| -rw-r--r-- | Project-Unite/ACL.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Project-Unite/ACL.cs b/Project-Unite/ACL.cs index eb8cf72..6764a20 100644 --- a/Project-Unite/ACL.cs +++ b/Project-Unite/ACL.cs @@ -121,6 +121,8 @@ namespace Project_Unite public static IHtmlString Markdown(this HtmlHelper hpr, string md) { + if (md == null) + return hpr.Raw(""); md = ResolveUserLinksInMarkdown(md); return hpr.Raw(CommonMark.CommonMarkConverter.Convert(hpr.Encode(md))); } |
