Skip to content

Commit

Permalink
fixed silly base64 decode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Jun 11, 2021
1 parent b8ca39c commit c223f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poodllfilelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function filter_poodll_uploadfile($filedata, $fileextension, $mediatype, $action
//we remove it, there must be a better way of course ...
//$metapos = strPos($filedata,";base64,");
$metapos = strPos($filedata, ",");
if ($metapos > 10 && $metapos < 30) {
if ($metapos !==false && $metapos <100) {
//$trunced = substr($filedata,0,$metapos+8);
$filedata = substr($filedata, $metapos + 1);

Expand Down

0 comments on commit c223f2e

Please sign in to comment.