mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44:41 +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 {
|
@functions {
|
||||||
static string EncodeLineBreaks(string text) {
|
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">
|
<script type="text/javascript">
|
||||||
|
|||||||
Reference in New Issue
Block a user