summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-22 21:37:23 -0400
committerMichael <[email protected]>2017-04-22 21:37:23 -0400
commit3e98bc2e5259ca6a81094d473a16b6d4899a7235 (patch)
tree2706ea6ca541a53b636365f1646668b3177a25e2
parentbc5623743500eb9a37bdcad7a324c6ad8f517685 (diff)
downloadproject-unite-3e98bc2e5259ca6a81094d473a16b6d4899a7235.tar.gz
project-unite-3e98bc2e5259ca6a81094d473a16b6d4899a7235.tar.bz2
project-unite-3e98bc2e5259ca6a81094d473a16b6d4899a7235.zip
don't parse null strings as md
-rw-r--r--Project-Unite/ACL.cs2
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)));
}