Skip to content

Commit

Permalink
Merge pull request #236 from tighten/mxm/stricter-conditional
Browse files Browse the repository at this point in the history
Add stricter conditional around file encoding check
  • Loading branch information
marcusmoore committed Jul 6, 2022
2 parents b15ca50 + c13d6be commit 05d8645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/GitLabRepo.php
Expand Up @@ -83,7 +83,7 @@ public function getContentsOfFile($path)
return;
}

return ($file['encoding'] == 'base64')
return (isset($file['encoding']) && $file['encoding'] === 'base64')
? base64_decode($file['content'])
: $file;
}
Expand Down

0 comments on commit 05d8645

Please sign in to comment.