Skip to content

Commit

Permalink
fix for yop csrf token (no idea why this works)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocjojo committed May 16, 2017
1 parent 2303974 commit 87621bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AuthProviderCombined.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function GISauthFlow($url) {
$res = curl_exec($req);
if($res !== false) {
// try to find csrf token in response
preg_match( '/<meta.*content="(.*)".*name="csrf-token"/', $res, $match );
preg_match( '/<meta\s*content="(.*)"\s*name="csrf-token"/', $res, $match );

// check for result
if(isset($match[1])) {
Expand Down

0 comments on commit 87621bd

Please sign in to comment.