Skip to content

Commit

Permalink
Forgot to decode 'entitlement' from attr_json.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrencegf committed Feb 13, 2019
1 parent 83d022e commit a18fe3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Service/DBService.php
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ public function call($params)
$this->ou = urldecode($match[1]);
}
if (preg_match('/attr_json=([^\r\n]+)/', $output, $match)) {
// Decode $attr_json into class members later
$attr_json = urldecode($match[1]);
}
if (preg_match('/serial_string=([^\r\n]+)/', $output, $match)) {
Expand Down Expand Up @@ -883,6 +884,9 @@ public function call($params)
if (isset($attr_arr['acr'])) {
$this->acr = $attr_arr['acr'];
}
if (isset($attr_arr['entitlement'])) {
$this->entitlement = $attr_arr['entitlement'];
}
}
}

Expand Down

0 comments on commit a18fe3a

Please sign in to comment.