Skip to content

Commit d94e539

Browse files
author
Michael Babker
committed
Don't include file body in encoded database record (Fix #156)
1 parent fb0569b commit d94e539

File tree

1 file changed

+3
-0
lines changed
  • administrator/components/com_patchtester/PatchTester/Model

1 file changed

+3
-0
lines changed

administrator/components/com_patchtester/PatchTester/Model/PullModel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ public function apply($id)
239239

240240
break;
241241
}
242+
243+
// We don't need the file's body any longer (and it causes issues with binary data when json_encode() is run), so remove it
244+
unset($file->body);
242245
}
243246

244247
$record = (object) array(

0 commit comments

Comments
 (0)