Skip to content

Commit

Permalink
(web) Fix XSRF cookie path when changing password
Browse files Browse the repository at this point in the history
Fixes #4139
  • Loading branch information
cgx committed Sep 19, 2017
1 parent 391410a commit 789398b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -20,6 +20,7 @@ Bug fixes
- [web] messages list not accessible when changing mailbox in expanded mail view (#4269)
- [web] only one postal address of same type is saved (#4091)
- [web] improve handling of email notifications of a calendar properties
- [web] fixed XSRF cookie path when changing password (#4139)
- [eas] hebrew folders encoding problem using EAS (#4240)

3.2.10 (2017-07-05)
Expand Down
1 change: 1 addition & 0 deletions UI/MainUI/SOGoRootPage.m
Expand Up @@ -623,6 +623,7 @@ - (WOResponse *) changePasswordAction
creds = [auth parseCredentials: [authCookie value]];
xsrfCookie = [WOCookie cookieWithName: @"XSRF-TOKEN"
value: [[SOGoSession valueForSessionKey: [creds lastObject]] asSHA1String]];
[xsrfCookie setPath: [NSString stringWithFormat: @"/%@/", [request applicationName]]];
[response addCookie: xsrfCookie];
}
else
Expand Down

0 comments on commit 789398b

Please sign in to comment.