mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#18890: Handle empty content identity encoding
Work Item: 18890 --HG-- branch : 1.x
This commit is contained in:
@@ -47,6 +47,10 @@ namespace Orchard.ContentManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static string EncodeIdentityValue(string identityValue) {
|
private static string EncodeIdentityValue(string identityValue) {
|
||||||
|
if(String.IsNullOrEmpty(identityValue)) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
var stringBuilder = new StringBuilder();
|
var stringBuilder = new StringBuilder();
|
||||||
foreach (var ch in identityValue.ToCharArray()) {
|
foreach (var ch in identityValue.ToCharArray()) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user