From c13d6be03e70f297581c54a1920825d3aedee457 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Wed, 6 Jul 2022 11:35:39 -0700 Subject: [PATCH] Add stricter conditional around file encoding check --- app/GitLabRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/GitLabRepo.php b/app/GitLabRepo.php index b7208b7..7f55c97 100644 --- a/app/GitLabRepo.php +++ b/app/GitLabRepo.php @@ -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; }