Skip to content

Commit

Permalink
Bug fix: Pattern match display_name and idp_display_name separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed Feb 6, 2019
1 parent ac72a50 commit c0caad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/DBService.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ public function call($params)
if (preg_match('/last_name=([^\r\n]+)/', $output, $match)) {
$this->last_name = urldecode($match[1]);
}
if (preg_match('/display_name=([^\r\n]+)/', $output, $match)) {
if (preg_match('/[^_]display_name=([^\r\n]+)/', $output, $match)) {
$this->display_name = urldecode($match[1]);
}
if (preg_match('/email=([^\r\n]+)/', $output, $match)) {
Expand Down

0 comments on commit c0caad1

Please sign in to comment.