mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19066 Empty widget layer description causes null reference exception
Work Item: 19066 --HG-- branch : 1.x
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
}
|
||||
@functions {
|
||||
static string EncodeLineBreaks(string text) {
|
||||
return text.Replace(Environment.NewLine, "\\\\n");
|
||||
if (!String.IsNullOrEmpty(text)){
|
||||
return text.Replace(Environment.NewLine, "\\\\n");
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
}
|
||||
<script type="text/javascript">
|
||||
|
Reference in New Issue
Block a user