Skip to content

Commit

Permalink
#U4-5379 Fixed Due in version: 7.2.0
Browse files Browse the repository at this point in the history
Some users have not set an email, don't strip out empty entries
  • Loading branch information
nul800sebastiaan committed Aug 22, 2014
1 parent 231c503 commit eae0087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Umbraco.Web/Mvc/AdminTokenAuthorizeAttribute.cs
Expand Up @@ -87,9 +87,9 @@ protected override bool AuthorizeCore(HttpContextBase httpContext)
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
Expand Down

0 comments on commit eae0087

Please sign in to comment.