Skip to content

Commit

Permalink
Fixed isssue #8655: RemoteControl 2 API fails to validate session key…
Browse files Browse the repository at this point in the history
… on Postgre
  • Loading branch information
c-schmitz committed Feb 4, 2014
1 parent f81409a commit 6fdf3ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/models/Session.php
Expand Up @@ -58,6 +58,11 @@ public function afterFind()
{
$this->data=$this->hexToStr($this->data);
}
// Postgres delivers a stream pointer
if (gettype($this->data)=='resource')
{
$this->data=stream_get_contents($this->data,-1,0);
}
return parent::afterFind();
}

Expand Down

0 comments on commit 6fdf3ad

Please sign in to comment.