Skip to content

Commit

Permalink
Fix to SPOnline auth from CakeBit
Browse files Browse the repository at this point in the history
See: #149 (comment) for full details.
  • Loading branch information
thybag authored Mar 16, 2019
1 parent 0dd10cc commit 36d4436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Thybag/Auth/SharePointOnlineAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function extractAuthCookies($result){
// Get the two auth cookies
foreach($header_array as $header) {
$loop = explode(":",$header);
if($loop[0] == 'Set-Cookie') {
if (strtolower($loop[0]) == 'Set-Cookie') {
$authCookies[] = $loop[1];
}
}
Expand Down

0 comments on commit 36d4436

Please sign in to comment.