mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding null check to Tokenizer
--HG-- branch : 1.x
This commit is contained in:
@@ -41,7 +41,8 @@ namespace Orchard.Tokens.Implementation {
|
||||
}
|
||||
|
||||
public string Replace(string text, IDictionary<string, object> data, ReplaceOptions options) {
|
||||
|
||||
if (string.IsNullOrEmpty(text)) return string.Empty;
|
||||
|
||||
// do we have to replace tokens with hashes ?
|
||||
bool hashMode = text.Contains("#{");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user