#18890: Handle empty content identity encoding

Work Item: 18890

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-08-14 16:44:32 -07:00
parent 20d8f247b8
commit 65844d8e45

View File

@@ -47,6 +47,10 @@ namespace Orchard.ContentManagement {
}
private static string EncodeIdentityValue(string identityValue) {
if(String.IsNullOrEmpty(identityValue)) {
return "";
}
var stringBuilder = new StringBuilder();
foreach (var ch in identityValue.ToCharArray()) {
switch (ch) {