Skip to content

Commit

Permalink
remove strict mode on all base64_decode callings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry-Shaw committed Jul 1, 2019
1 parent 01bedb2 commit c5e6567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/parser/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function decode(string $value): string
{
if (0 === strpos($value, self::BASE64)) {
$value = substr($value, strlen(self::BASE64));
$value = base64_decode($value, true);
$value = base64_decode($value);
}

return $value;
Expand Down
2 changes: 1 addition & 1 deletion ext/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private function recv_base64(string $base64): void
$this->file['method'] = 'base64';
$this->file['stream'] = [
'type' => substr($base64, 5, $pos - 5),
'data' => $data = base64_decode(substr($base64, $pos + 8), true),
'data' => $data = base64_decode(substr($base64, $pos + 8)),
'size' => strlen($data)
];

Expand Down

0 comments on commit c5e6567

Please sign in to comment.