#U4-5379 Fixed Due in version: 7.2.0

Some users have not set an email, don't strip out empty entries
This commit is contained in:
Sebastiaan Janssen
2014-08-22 11:15:46 +02:00
parent 231c50319f
commit eae0087307

View File

@@ -87,9 +87,9 @@ namespace Umbraco.Web.Mvc
var encrypted = Encoding.UTF8.GetString(bytes);
//decrypt the string
var text = encrypted.DecryptWithMachineKey();
//split
var split = text.Split(new[] {"u____u"}, StringSplitOptions.RemoveEmptyEntries);
//split - some users have not set an email, don't strip out empty entries
var split = text.Split(new[] {"u____u"}, StringSplitOptions.None);
if (split.Length != 3) return false;
//compare