Skip to content

Commit

Permalink
addresses reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
raftx24 committed Jan 28, 2021
1 parent 667c057 commit 3a33588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Bus/DatabaseBatchRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ protected function serialize($value)
*/
protected function unserialize($serialized)
{
if ($this->connection instanceof PostgresConnection) {
$serialized = base64_decode($serialized, true) ?: $serialized;
if ($this->connection instanceof PostgresConnection && ! Str::contains($serialized, [':', ';'])) {
$serialized = base64_decode($serialized);
}

return unserialize($serialized);
Expand Down

0 comments on commit 3a33588

Please sign in to comment.